Skip to content

Commit

Permalink
Remove leading zeroes
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob McGill <[email protected]>
  • Loading branch information
b-sheedy and jmcgill298 authored Dec 11, 2024
1 parent aa86c5a commit 526fce0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion ntc_templates/templates/extreme_exos_show_fdb.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Start

Start_record
^\s*-+\s*$$
^${MAC_ADDRESS}\s+${VLAN_NAME}\(${VLAN_ID}\)\s+${AGE}\D+${INTERFACE}\s*$$ -> Record
^${MAC_ADDRESS}\s+${VLAN_NAME}\(0*${VLAN_ID}\)\s+0*${AGE}\D+${INTERFACE}\s*$$ -> Record
^\s*Flags\s+:
^\s*x\s+-\s+IPX
^\s*b\s+-\s+Ingress\s+Blackhole
Expand Down
28 changes: 14 additions & 14 deletions tests/extreme_exos/show_fdb/extreme_exos_show_fdb.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
---
parsed_sample:
- age: "0041"
- age: "41"
interface: "1:2"
mac_address: "00:0c:29:4b:34:cf"
vlan_id: "0101"
vlan_id: "101"
vlan_name: "v101"
- age: "0041"
- age: "41"
interface: "1:2"
mac_address: "00:0c:29:4b:34:cf"
vlan_id: "0100"
vlan_id: "100"
vlan_name: "v100"
- age: "0045"
- age: "45"
interface: "1:3, 1:45"
mac_address: "00:0c:29:d2:2d:48"
vlan_id: "0102"
vlan_id: "102"
vlan_name: "v102"
- age: "0045"
- age: "45"
interface: "1:3"
mac_address: "00:0c:29:d2:2d:48"
vlan_id: "0100"
vlan_id: "100"
vlan_name: "v100"
- age: "0045"
- age: "45"
interface: "1:51:1, 1:45"
mac_address: "00:0c:29:f1:f2:f5"
vlan_id: "0100"
vlan_id: "100"
vlan_name: "v100"
- age: "0045"
- age: "45"
interface: "1:1"
mac_address: "00:0c:29:f1:f2:f5"
vlan_id: "0102"
vlan_id: "102"
vlan_name: "v102"
- age: "0000"
- age: "0"
interface: "1:1"
mac_address: "00:0c:29:f1:f2:f5"
vlan_id: "0101"
vlan_id: "101"
vlan_name: "v101"

0 comments on commit 526fce0

Please sign in to comment.