Skip to content

Commit

Permalink
Fixed TYPE regex to include non-dynamic addresses (networktocode#1253)
Browse files Browse the repository at this point in the history
* Fixed TYPE regex to include non-dynmaic addresses

* Updated TYPE regex to include non-dynmaic addresses

* Added tests for port-access-security  TYPE regex
  • Loading branch information
afly007 authored Dec 22, 2022
1 parent 7b48732 commit d1af24e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Value MAC (\S+)
Value VLAN (\d+)
Value TYPE ([a-z]+)
Value TYPE (\S+)
Value PORT (\S+)

Start
Expand All @@ -10,4 +10,4 @@ Start
^-+$$
^${MAC}\s+${VLAN}\s+${TYPE}\s+${PORT} -> Record
^\s*$$
^. -> Error
^. -> Error
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ MAC Address VLAN Type Port
90:e2:ba:28:0d:f1 10 dynamic lag100
00:01:2e:82:0f:7b 3560 dynamic lag100
90:e2:ba:28:0d:f0 3590 dynamic lag100
88:3a:30:a3:86:80 3590 dynamic lag100
88:3a:30:a3:86:80 3590 dynamic lag100
80:5e:0c:76:ed:bb 2015 port-access-security 1/1/30
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ parsed_sample:
vlan: "3590"
type: "dynamic"
port: "lag100"
- mac: "80:5e:0c:76:ed:bb"
vlan: "2015"
type: "port-access-security"
port: "1/1/30"

0 comments on commit d1af24e

Please sign in to comment.