Skip to content

Commit

Permalink
added support for version R8
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmonkey19 committed Nov 20, 2024
1 parent a5e3e3f commit f1f6b61
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
Value PORT ((\d+\/?)+)
Value OPERATION_MODE (\S+)
Value ADMIN_STATE (\S+)
Value MAX_MAC_BRIDGED (\d+)
Value TRAP_THRESHOLD (\S+)
Value MAX_MAC_FILTERED (\d+)
Value VIOLATION_TYPE (\S+)
Value VIOLATION_MAC (\S+)
Value PKT_RELAY (\S+)


Start
^\s*Port:\s*${PORT}$$
^\s*Admin-State\s*:\s*${ADMIN_STATE},$$
^\s*Operation\s*Mode\s*:\s*${OPERATION_MODE},$$
^\s*Max\s*MAC\s*bridged\s*:\s*${MAX_MAC_BRIDGED},$$
^\s*Trap\s*Threshold\s*:\s*${TRAP_THRESHOLD},$$
^\s*Max\s*MAC\s*filtered\s*:\s*${MAX_MAC_FILTERED},$$
^\s*Violation\s*:\s*${VIOLATION_TYPE},$$
^\s*Violating\s*MAC\s*:\s*${VIOLATION_MAC}\s*$$ -> Record
^\s*Violating\s*MAC\s*:\s*${VIOLATION_MAC}\s*$$
^\s*Pkt-Relay\s*:\s*${PKT_RELAY}$$ -> Record
^\s*
^.*$$ -> Error
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
---
parsed_sample:
- max_mac_bridged: "1"
max_mac_filtered: "5"
operation_mode: "ENABLED"
port: "1/11"
trap_threshold: "DISABLED"
violation_mac: "NULL"
violation_type: "RESTRICT"
- max_mac_bridged: "1"
- admin_state: ""
max_mac_bridged: "1"
max_mac_filtered: "5"
operation_mode: "ENABLED"
pkt_relay: ""
port: "1/12"
trap_threshold: "DISABLED"
violation_mac: "NULL"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Legend: Mac Address: * = address not valid,

Mac Address: & = duplicate static address,


Port: 1/1/1
Admin-State : DISABLED,
Operation Mode : DISABLED,
Max MAC bridged : 1,
Trap Threshold : DISABLED,
Violation : RESTRICT,
Max MAC filtered : 5,
Violating MAC : NULL,
Pkt-Relay : DISABLED

MAC VLAN MAC TYPE OPERATION
-------------------------+--------+-----------------+-----------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
parsed_sample:
- admin_state: "DISABLED"
max_mac_bridged: "1"
max_mac_filtered: "5"
operation_mode: "DISABLED"
pkt_relay: "DISABLED"
port: "1/1/1"
trap_threshold: "DISABLED"
violation_mac: "NULL,"
violation_type: "RESTRICT"

0 comments on commit f1f6b61

Please sign in to comment.