Skip to content

Commit

Permalink
Issue #95: MIB2NT: Bad ExcludeMatchingLines regex
Browse files Browse the repository at this point in the history
* Surrounded some Regular Expressions with double quotes as in HDFs.
  • Loading branch information
CherfaElyes committed Jul 22, 2024
1 parent 51bf48c commit 7a5abbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/connector/hardware/MIB2Linux/MIB2Linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ monitors:
# PortID;Description;PortType;MacAddress;AdminStatus;
- type: keepOnlyMatchingLines
column: 2
regExp: \\(^eth[0-9]+$\\)\\|\\(^vmnic[0-9]+$\\)\\|\\(^em[0-9]+$\\)\\|\\(^[Pp][0-9]+[Pp][0-9]+$\\)\\|\\(^en[ospx]\\)
regExp: "\\(^eth[0-9]+$\\)\\|\\(^vmnic[0-9]+$\\)\\|\\(^em[0-9]+$\\)\\|\\(^[Pp][0-9]+[Pp][0-9]+$\\)\\|\\(^en[ospx]\\)"
mapping:
# InstanceTable = Source(1)
# PortID;Description;PortType;MacAddress;AdminStatus;
Expand Down
2 changes: 1 addition & 1 deletion src/main/connector/hardware/MIB2NT/MIB2NT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ monitors:
# PortID;Description;PortType;MacAddress;AdminStatus;
- type: excludeMatchingLines
column: 2
regExp: \\(WAN\\)\\|\\(QoS\\)\\|\\([Ff]ilter\\)\\|\\([Ss]witch\\)\\|\\(57 41 4E 20\\)\\|\\(4D 69 63 72 6F 73 6F 66 74\\)
regExp: "\\(WAN\\)\\|\\(QoS\\)\\|\\([Ff]ilter\\)\\|\\([Ss]witch\\)\\|\\(57 41 4E 20\\)\\|\\(4D 69 63 72 6F 73 6F 66 74\\)"
# Keep only network cards that have a description
# PortID;Description;PortType;MacAddress;AdminStatus;
- type: keepOnlyMatchingLines
Expand Down

0 comments on commit 7a5abbe

Please sign in to comment.