-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ios: Add support and tests for get_bgp_neighbors_detail * ios: formatting get_bgp_neighbors_detail
- Loading branch information
1 parent
24f887b
commit b0629e8
Showing
13 changed files
with
1,023 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
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,24 @@ | ||
Value Filldown ADDR_FAMILY (.*) | ||
Value Filldown ROUTER_ID (\S+) | ||
Value Filldown LOCAL_AS (\d+) | ||
Value NEIGHBOR (\S+) | ||
Value BGP_VER (\d) | ||
Value REMOTE_AS (\d+) | ||
Value MSG_RECV (\d+) | ||
Value MSG_SENT (\d+) | ||
Value TBL_VER (\d+) | ||
Value IN_Q (\d+) | ||
Value OUT_Q (\d+) | ||
Value UP (\w+) | ||
Value PREFIX_RECV (.*) | ||
|
||
Start | ||
^For address family\: ${ADDR_FAMILY} | ||
^BGP router identifier ${ROUTER_ID}, local AS number ${LOCAL_AS} | ||
^Neighbor\s+V -> Table | ||
|
||
Table | ||
^${NEIGHBOR}\s+${BGP_VER}\s+${REMOTE_AS}\s+${MSG_RECV}\s+${MSG_SENT}\s+${TBL_VER}\s+${IN_Q}\s+${OUT_Q}\s+${UP}\s+${PREFIX_RECV} -> Record Table | ||
^\s* -> Clearall Start | ||
|
||
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,56 @@ | ||
Value NEIGHBOR (\S+) | ||
Value REMOTE_AS (\d+) | ||
Value BGP_TYPE (\w+) | ||
Value VRF (\w+) | ||
Value DESCRIPTION (.*) | ||
Value ROUTER_ID (\S+) | ||
Value BGP_STATE (\w+) | ||
Value UP (\w+) | ||
Value UPTIME (\w+) | ||
Value LAST_READ (.*) | ||
Value LAST_WRITE (.*) | ||
Value HOLDTIME (\d+) | ||
Value KEEPALIVE (\d+) | ||
Value FOUR_BYTE_AS (.*) | ||
Value MSG_OPEN_OUT (\d+) | ||
Value MSG_OPEN_IN (\d+) | ||
Value MSG_NOTI_OUT (\d+) | ||
Value MSG_NOTI_IN (\d+) | ||
Value MSG_UPDATE_OUT (\d+) | ||
Value MSG_UPDATE_IN (\d+) | ||
Value MSG_KEEPALIVE_OUT (\d+) | ||
Value MSG_KEEPALIVE_IN (\d+) | ||
Value MSG_REFRESH_OUT (\d+) | ||
Value MSG_REFRESH_IN (\d+) | ||
Value MSG_TOTAL_OUT (\d+) | ||
Value MSG_TOTAL_IN (\d+) | ||
Value LOCAL_ADDRESS (.*) | ||
Value LOCAL_PORT (\d+) | ||
Value REMOTE_ADDRESS (.*) | ||
Value REMOTE_PORT (\d+) | ||
Value ROUTING_TABLE (\d+) | ||
Value CONN_STATE (\w+) | ||
|
||
Start | ||
^BGP neighbor is ${NEIGHBOR},(?:\s+vrf ${VRF},)?\s+remote AS\s+${REMOTE_AS},\s+${BGP_TYPE} link | ||
^\s+Administratively shut ${UP} | ||
^\s+Description:\s+${DESCRIPTION} | ||
^\s+BGP version 4, remote router ID ${ROUTER_ID} | ||
^\s+BGP state = ${BGP_STATE}(?:, ${UP} for ${UPTIME})? | ||
^\s+Last read ${LAST_READ}, last write ${LAST_WRITE}, hold time is ${HOLDTIME}, keepalive interval is ${KEEPALIVE} seconds | ||
^\s+Four-octets ASN Capability:\s+${FOUR_BYTE_AS} | ||
^\s+Opens:\s+${MSG_OPEN_OUT}\s+${MSG_OPEN_IN} | ||
^\s+Notifications:\s+${MSG_NOTI_OUT}\s+${MSG_NOTI_IN} | ||
^\s+Updates:\s+${MSG_UPDATE_OUT}\s+${MSG_UPDATE_IN} | ||
^\s+Keepalives:\s+${MSG_KEEPALIVE_OUT}\s+${MSG_KEEPALIVE_IN} | ||
^\s+Route Refresh:\s+${MSG_REFRESH_OUT}\s+${MSG_REFRESH_IN} | ||
^\s+Total:\s+${MSG_TOTAL_OUT}\s+${MSG_TOTAL_IN} | ||
^\s*Connection state is ${CONN_STATE}, | ||
^\s*For address family -> Afi | ||
^Local host: ${LOCAL_ADDRESS}, Local port: ${LOCAL_PORT} | ||
^Foreign host: ${REMOTE_ADDRESS}, Foreign port: ${REMOTE_PORT} | ||
^Connection tableid \(VRF\): ${ROUTING_TABLE} | ||
|
||
Afi | ||
^\s -> Next | ||
^\w -> Start |
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,41 @@ | ||
Value AFI (.*) | ||
Value SESSION (\S+) | ||
Value POLICY_IN (\S+) | ||
Value POLICY_OUT (\S+) | ||
Value PREFIX_CURR_OUT (\d+) | ||
Value PREFIX_CURR_IN (\d+) | ||
Value PREFIX_TOTAL_OUT (\d+) | ||
Value PREFIX_TOTAL_IN (\d+) | ||
Value WITHDRAW_IMPLICIT_OUT (\d+) | ||
Value WITHDRAW_IMPLICIT_IN (\d+) | ||
Value WITHDRAW_EXPLICIT_OUT (\d+) | ||
Value WITHDRAW_EXPLICIT_IN (\d+) | ||
Value BESTPATHS (\d+) | ||
Value MULTIPATHS (\d+) | ||
Value SECONDARIES (\d+) | ||
Value REJECTED_PREFIX_IN (\d+) | ||
Value REJECTED_PREFIX_OUT (\d+) | ||
Value FLAP_COUNT (\d+) | ||
Value LAST_EVENT (.*) | ||
Value LOCAL_ADDR_CONF (peering address in same link) | ||
|
||
Start | ||
^\s*For address family: -> Continue.Record | ||
^\s*For address family: ${AFI} | ||
^\s+Session: ${SESSION} | ||
^\s+Route map for incoming advertisements is ${POLICY_IN} | ||
^\s+Route map for outgoing advertisements is ${POLICY_OUT} | ||
^\s+Prefixes Current:\s+${PREFIX_CURR_OUT}\s+${PREFIX_CURR_IN} | ||
^\s+Prefixes Total:\s+${PREFIX_TOTAL_OUT}\s+${PREFIX_TOTAL_IN} | ||
^\s+Implicit Withdraw:\s+${WITHDRAW_IMPLICIT_OUT}\s+${WITHDRAW_IMPLICIT_IN} | ||
^\s+Explicit Withdraw:\s+${WITHDRAW_EXPLICIT_OUT}\s+${WITHDRAW_EXPLICIT_IN} | ||
^\s+Used as bestpath:\s+\S+\s+${BESTPATHS} | ||
^\s+Used as multipath:\s+\S+\s+${MULTIPATHS} | ||
^\s+Used as secondary:\s+\S+\s+${SECONDARIES} | ||
^\s+Total:\s+${REJECTED_PREFIX_OUT}\s+${REJECTED_PREFIX_IN} | ||
^\s+Connections established\s+\d+;\s+dropped\s+${FLAP_COUNT} | ||
^\s+Last reset ${LAST_EVENT} | ||
^\s+Interface associated: \S+ \(${LOCAL_ADDR_CONF}\) | ||
^Connection state is -> Record | ||
|
||
|
Oops, something went wrong.