-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Junos sh eth switch table (#1733)
- Loading branch information
1 parent
7d7808f
commit 5d13288
Showing
5 changed files
with
41 additions
and
7 deletions.
There are no files selected for viewing
13 changes: 6 additions & 7 deletions
13
ntc_templates/templates/juniper_junos_show_ethernet-switching_table.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
Value VLAN_ID (\S+) | ||
Value BRIDGE_DOMAIN_ID (\S+) | ||
Value MAC_ADDRESS (\S+) | ||
Value MAC_FLAG (\S+) | ||
Value AGE (\S+) | ||
Value LOGICAL_INTERFACE (\S+) | ||
|
||
Start | ||
^MAC\sflags\s\(S\s-\sstatic\sMAC,\sD\s-\sdynamic\sMAC,\sL\s-\slocally\slearned,\sP\s-\sPersistent\sstatic\S*\s*\S*\s*\S*\s*\S*\s*\S*$$ | ||
^\s+SE\s-\sstatistics\senabled,\sNM\s-\snon\sconfigured\sMAC,\sR\s-\sremote\sPE\sMAC,\sO\s-\sovsdb\sMAC\)$$ | ||
^MAC\sflags | ||
^\s*SE\s-\sstatistics\senabled | ||
^Ethernet\sswitching\stable\s:\s\d+\sentries,\s\d+\slearned$$ | ||
^Routing\sinstance\s:\sdefault-switch$$ | ||
^\s+Vlan\s+MAC\s+MAC\s+Age\s+Logical\s*\S*\s*\S*\s*$$ | ||
^\s+name\s+address\s+flags\s+interface\s*\S*\s*\S*\s*$$ | ||
^\s+Vlan${VLAN_ID}\s+${MAC_ADDRESS}\s+${MAC_FLAG}\s+${AGE}\s+${LOGICAL_INTERFACE}\s*\S*\s*\S* -> Record | ||
^\s*Vlan\s+MAC\s+MAC\s+Age\s+Logical\s*\S*\s*\S*\s*$$ | ||
^\s*name\s+address\s+flags\s+interface\s*\S*\s*\S*\s*$$ | ||
^\s*(?:Vlan${VLAN_ID}|BD-${BRIDGE_DOMAIN_ID})\s+${MAC_ADDRESS}\s+${MAC_FLAG}\s+${AGE}\s+${LOGICAL_INTERFACE}\s*\S*\s*\S* -> Record | ||
^\s*$$ | ||
^{master:\d+} | ||
^. -> Error | ||
|
||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ow_ethernet-switching_table/juniper_junos_show_ethernet-switching_table_14.1X53-D47.6.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static | ||
SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC) | ||
|
||
Ethernet switching table : 3 entries, 3 learned | ||
Routing instance : default-switch | ||
Vlan MAC MAC Age Logical | ||
name address flags interface | ||
BD-903691 3c:8c:93:50:dc:c0 D - ae2.0 | ||
BD-903691 52:54:00:f5:30:2b D - ae2.0 | ||
Vlan3117 00:0c:29:84:d2:f8 D - xe-0/0/3.0 |
20 changes: 20 additions & 0 deletions
20
...ow_ethernet-switching_table/juniper_junos_show_ethernet-switching_table_14.1X53-D47.6.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
parsed_sample: | ||
- age: "-" | ||
logical_interface: "ae2.0" | ||
mac_address: "3c:8c:93:50:dc:c0" | ||
mac_flag: "D" | ||
vlan_id: "" | ||
bridge_domain_id: "903691" | ||
- age: "-" | ||
logical_interface: "ae2.0" | ||
mac_address: "52:54:00:f5:30:2b" | ||
mac_flag: "D" | ||
vlan_id: "" | ||
bridge_domain_id: "903691" | ||
- age: "-" | ||
logical_interface: "xe-0/0/3.0" | ||
mac_address: "00:0c:29:84:d2:f8" | ||
mac_flag: "D" | ||
vlan_id: "3117" | ||
bridge_domain_id: "" |