forked from sonic-net/sonic-mgmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spytest textfsm template changes-4 (sonic-net#9556)
Co-authored-by: Rama Sasthri, Kristipati <[email protected]>
- Loading branch information
1 parent
bc60bfd
commit d92cedf
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
spytest/templates/show_bgp_ipv4_unicast_vrf_dampened_paths.tmpl
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,15 @@ | ||
Value Filldown ROUTER_ID (\d+\.\d+\.\d+\.\d+) | ||
Value Filldown LOCAL_PREF (\d+) | ||
Value Filldown LOCAL_AS (\d+) | ||
Value STATUS_CODE1 (\*|>) | ||
Value STATUS_CODE2 (d|S|s|h) | ||
Value Required NETWORK (\d+\.\d+\.\d+\.\d+/\d+) | ||
Value FROM_NEIGH (\d+\.\d+\.\d+\.\d+) | ||
Value REUSE (\d+:\d+:\d+) | ||
Value PATH (\d+) | ||
Value ORIGIN_CODE (i|e|\?) | ||
|
||
Start | ||
^\s*BGP local router ID is ${ROUTER_ID} | ||
^\s*Default local pref ${LOCAL_PREF}, local AS ${LOCAL_AS} | ||
^\s*${STATUS_CODE1}${STATUS_CODE2}\s+${NETWORK}\s+${FROM_NEIGH}\s+${REUSE}\s+${PATH}\s+${ORIGIN_CODE} -> Continue.Record |
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,8 @@ | ||
Value ip_addr (\S+) | ||
Value metric (\d+) | ||
Value paths (\d+) | ||
Value peers ([-()\w/. ]+) | ||
|
||
|
||
Start | ||
^\s*${ip_addr}\s+valid\s+\[IGP metric ${metric}\],\s+#paths\s+${paths},\s+peer\s+${peers}\s*$$ -> Record |
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,16 @@ | ||
Value IFACE ([\w./]+) | ||
Value RX_OK ([\d\.\,]+|N/A) | ||
Value RX_BPS (\S+(\s\S+)?|N/A) | ||
Value RX_ERR ([\d\.]+|N/A) | ||
Value RX_PPS (\S+(\s\S+)?|N/A) | ||
Value TX_OK ([\d\.\,]+|N/A) | ||
Value TX_BPS (\S+(\s\S+)?|N/A) | ||
Value TX_ERR ([\d\.]+|N/A) | ||
Value TX_PPS (\S+(\s\S+)?|N/A) | ||
Value Polling_interval (\d+) | ||
|
||
Start | ||
^\s*Polling\s*Rate\s*\:\s*${Polling_interval}.*\s*$$ | ||
^\s*${IFACE}\s+${RX_OK}\s+${RX_BPS}\s+${RX_PPS}\s+${RX_ERR}\s+${TX_OK}\s+${TX_BPS}\s+${TX_PPS}\s+${TX_ERR}\s*$$ -> Record | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Value interface (\S+) | ||
Value transmitted (\d+) | ||
Value received (\d+) | ||
Value discarded (\d+) | ||
Value unrecognized (\d+) | ||
Value ageout (\d+) | ||
Value inserted (\d+) | ||
Value deleted (\d+) | ||
|
||
Start | ||
^\s*Interface\s*\:\s*${interface}\s*$$ | ||
^\s*Transmitted\s*\:\s*${transmitted}\s*$$ | ||
^\s*Received\s*\:\s*${received}\s*$$ | ||
^\s*Discarded\s*\:\s*${discarded}\s*$$ | ||
^\s*Unrecognized\s*\:\s*${unrecognized}\s*$$ | ||
^\s*Unrecognized\s*[TLV]*\s*\:\s*${unrecognized}\s*$$ | ||
^\s*Ageout\s*\:\s*${ageout}\s*$$ | ||
^\s*Inserted\s*\:\s*${inserted}\s*$$ | ||
^\s*Deleted\s*\:\s*${deleted}\s*$$ -> Record |
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,6 @@ | ||
Value vlan_range (\S+) | ||
|
||
Start | ||
^\s*system vlan reservation:\s*${vlan_range}\s*$$ -> Record | ||
|
||
EOF |