-
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.
New Template: juniper_junos_show_ethenet-switching_table.textfsm (#700)
- Loading branch information
1 parent
591c23e
commit a5048ea
Showing
6 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Value VLAN (\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\)$$ | ||
^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}\s+${MAC_ADDRESS}\s+${MAC_FLAG}\s+${AGE}\s+${LOGICAL_INTERFACE}\s*\S*\s*\S* -> Record | ||
^\s*$$ | ||
^{master:\d+} | ||
^. -> Error | ||
|
||
EOF |
14 changes: 14 additions & 0 deletions
14
...niper_junos/show_ethernet-switching_table/juniper_junos_show_ethernet-switching_table.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,14 @@ | ||
|
||
MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static, C - Control MAC | ||
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 NH RTR | ||
name address flags interface Index ID | ||
Vlan2 bc:ac:0a:ca:ca:30 DR - ae3.0 0 0 | ||
Vlan100 2c:5a:0f:bc:a3:cd DL - xe-0/0/51:0.0 0 0 | ||
Vlan1011 ca:fe:ca:fe:00:07 DL - ae100.0 0 0 | ||
|
||
{master:0} |
17 changes: 17 additions & 0 deletions
17
...niper_junos/show_ethernet-switching_table/juniper_junos_show_ethernet-switching_table.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,17 @@ | ||
--- | ||
parsed_sample: | ||
- vlan: "2" | ||
mac_address: "bc:ac:0a:ca:ca:30" | ||
mac_flag: "DR" | ||
age: "-" | ||
logical_interface: "ae3.0" | ||
- vlan: "100" | ||
mac_address: "2c:5a:0f:bc:a3:cd" | ||
mac_flag: "DL" | ||
age: "-" | ||
logical_interface: "xe-0/0/51:0.0" | ||
- vlan: "1011" | ||
mac_address: "ca:fe:ca:fe:00:07" | ||
mac_flag: "DL" | ||
age: "-" | ||
logical_interface: "ae100.0" |
13 changes: 13 additions & 0 deletions
13
...iper_junos/show_ethernet-switching_table/juniper_junos_show_ethernet-switching_table1.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,13 @@ | ||
|
||
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 : 2 entries, 2 learned | ||
Routing instance : default-switch | ||
Vlan MAC MAC Age Logical | ||
name address flags interface | ||
Vlan100 2c:5a:0f:bc:a3:cd DL - ae112.0 | ||
Vlan100 ca:fe:ca:fe:00:07 DL - ae112.0 | ||
|
||
{master:0} |
12 changes: 12 additions & 0 deletions
12
...iper_junos/show_ethernet-switching_table/juniper_junos_show_ethernet-switching_table1.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,12 @@ | ||
--- | ||
parsed_sample: | ||
- vlan: "100" | ||
mac_address: "2c:5a:0f:bc:a3:cd" | ||
mac_flag: "DL" | ||
age: "-" | ||
logical_interface: "ae112.0" | ||
- vlan: "100" | ||
mac_address: "ca:fe:ca:fe:00:07" | ||
mac_flag: "DL" | ||
age: "-" | ||
logical_interface: "ae112.0" |