Skip to content

Commit

Permalink
Fix ios sh int status private vlan (pvlan) bug (#1948)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbear authored Jan 7, 2025
1 parent a841365 commit ba9ba1d
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Value PORT (\S+)
Value NAME (.+?)
Value STATUS (err-disabled|disabled|connected|notconnect|inactive|up|down|monitoring|suspended)
Value VLAN_ID (\d+|trunk|routed|unassigned)
Value VLAN_ID (\d+(,\d+)*|trunk|routed|unassigned|pvlan\s+prom)
Value DUPLEX (\S+)
Value SPEED (\S+)
Value TYPE (.*)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

Port Name Status Vlan Duplex Speed Type
Twe1/0/1 Device 1 connected 123 a-full a-1000 10/100/1000BaseTX SFP
Twe1/0/2 Device 2 disabled 456 auto auto 10/100/1000BaseTX SFP
Twe1/0/4 * Device 3 * connected 123,1234 a-full a-1000 10/100/1000BaseTX SFP
Twe1/0/5 Device 4 disabled 2345 auto auto 10/100/1000BaseTX SFP
Twe1/0/17 Device 5 connected pvlan prom full 10G SFP-10GBase-SR
Twe1/0/28 Device 6 notconnect 123 auto auto 10/100/1000BaseTX SFP
Twe2/0/32 monitoring 1 full 10G SFP-10GBase-SR
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
parsed_sample:
- duplex: "a-full"
fc_mode: ""
name: "Device 1"
port: "Twe1/0/1"
speed: "a-1000"
status: "connected"
type: "10/100/1000BaseTX SFP"
vlan_id: "123"
- duplex: "auto"
fc_mode: ""
name: "Device 2"
port: "Twe1/0/2"
speed: "auto"
status: "disabled"
type: "10/100/1000BaseTX SFP"
vlan_id: "456"
- duplex: "a-full"
fc_mode: ""
name: "* Device 3 *"
port: "Twe1/0/4"
speed: "a-1000"
status: "connected"
type: "10/100/1000BaseTX SFP"
vlan_id: "123,1234"
- duplex: "auto"
fc_mode: ""
name: "Device 4"
port: "Twe1/0/5"
speed: "auto"
status: "disabled"
type: "10/100/1000BaseTX SFP"
vlan_id: "2345"
- duplex: "full"
fc_mode: ""
name: "Device 5"
port: "Twe1/0/17"
speed: "10G"
status: "connected"
type: "SFP-10GBase-SR"
vlan_id: "pvlan prom"
- duplex: "auto"
fc_mode: ""
name: "Device 6"
port: "Twe1/0/28"
speed: "auto"
status: "notconnect"
type: "10/100/1000BaseTX SFP"
vlan_id: "123"
- duplex: "full"
fc_mode: ""
name: ""
port: "Twe2/0/32"
speed: "10G"
status: "monitoring"
type: "SFP-10GBase-SR"
vlan_id: "1"

0 comments on commit ba9ba1d

Please sign in to comment.