-
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.
Merge pull request #1442 from PavloSkliarenko/cisco_ios_show_ip_bgp_s…
…ummary Cisco ios show ip bgp summary
- Loading branch information
Showing
4 changed files
with
153 additions
and
63 deletions.
There are no files selected for viewing
20 changes: 13 additions & 7 deletions
20
ntc_templates/templates/cisco_ios_show_ip_bgp_summary.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,17 +1,23 @@ | ||
Value Filldown,Required ROUTER_ID ([0-9a-f:\.]+) | ||
Value Filldown LOCAL_AS (\d+(\.\d+)?) | ||
Value Filldown ADDR_FAMILY (.+?) | ||
Value BGP_NEIGH (\d+?\.\d+?\.\d+?\.\d+?) | ||
Value NEIGH_AS (\d+) | ||
Value Filldown ADDRESS_FAMILY (.+?) | ||
Value BGP_NEIGHBOR (\d+?\.\d+?\.\d+?\.\d+?) | ||
Value BGP_VERSION (\d+) | ||
Value NEIGHBOR_AS (\d+) | ||
Value MESSAGES_RECEIVED (\d+) | ||
Value MESSAGES_SENT (\d+) | ||
Value TABLE_VERSION (\d+) | ||
Value INPUT_QUEUE (\d+) | ||
Value OUTPUT_QUEUE (\d+) | ||
Value UP_DOWN (\S+?) | ||
Value STATE_PFXRCD (\S+?\s+\S+?|\S+?) | ||
Value STATE_OR_PREFIXES_RECEIVED (\S+?\s+\S+?|\S+?) | ||
|
||
Start | ||
^For\s+address\s+family:\s+${ADDR_FAMILY}$$ | ||
^For\s+address\s+family:\s+${ADDRESS_FAMILY}$$ | ||
^BGP\s+router\s+identifier\s+${ROUTER_ID},\s+local\s+AS\s+number\s+${LOCAL_AS}\s*$$ | ||
^${BGP_NEIGH}\s+\S+\s+${NEIGH_AS}(\s+\d+?){5}\s+${UP_DOWN}\s+${STATE_PFXRCD}\s*$$ -> Record | ||
^${BGP_NEIGHBOR}\s+${BGP_VERSION}\s+${NEIGHBOR_AS}\s+${MESSAGES_RECEIVED}\s+${MESSAGES_SENT}\s+${TABLE_VERSION}\s+${INPUT_QUEUE}\s+${OUTPUT_QUEUE}\s+${UP_DOWN}\s+${STATE_OR_PREFIXES_RECEIVED}\s*$$ -> Record | ||
# Capture time-stamp if vty line has command time-stamping turned on | ||
^Load\s+for\s+ | ||
^Time\s+source\s+is | ||
|
||
EOF | ||
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
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