diff --git a/ntc_templates/templates/cisco_ios_show_ip_eigrp_neighbors_detail.textfsm b/ntc_templates/templates/cisco_ios_show_ip_eigrp_neighbors_detail.textfsm new file mode 100644 index 0000000000..16f15685b3 --- /dev/null +++ b/ntc_templates/templates/cisco_ios_show_ip_eigrp_neighbors_detail.textfsm @@ -0,0 +1,33 @@ +Value Filldown AS (\d+) +Value Required H (\d+) +Value Required IP_ADDRESS ([0-9A-Fa-f:\.]+) +Value INTERFACE (\S+) +Value HOLD (\d+) +Value UPTIME (\S+) +Value SRTT (\d+) +Value RTO (\d+) +Value Q_CNT (\d+) +Value SEQ_NUM (\d+) +Value VERSION (\S+) +Value RETRANS (\d+) +Value RETRIES (\d+) +Value PREFIXES (\d+) +Value TOPOLOGY_IDS_FROM_PEER (\d+) +Value Fillup MAX_NEIGHBORS (\d+) +Value Fillup CURRENT_NEIGHBORS (\d+) + +Start + ^\s*(IP-|)EIGRP(-IPv[46](:\(\d+\))?|)\s+[Nn]eighbors\s+for\s+(process\s+|AS\()${AS}(\)|)\s*$$ + ^\s*(IP-|)EIGRP(-IPv[46](:\(\d+\))?|)\s+[Nn]eighbors\s+for\s+(process\s+|AS\()${AS}(\)|)\s+VRF default\s*$$ + ^\s*H\s+Address\s+Interface\s+Hold\s+Uptime\s+SRTT\s+RTO\s+Q\s+Seq\s*$$ + ^\s+\(sec\)\s+\(ms\)\s+Cnt\s+Num\s*$$ -> Neighbors + +Neighbors + ^\s*${H}\s+${IP_ADDRESS}\s+${INTERFACE}\s+${HOLD}\s+${UPTIME}\s+${SRTT}\s+${RTO}\s+${Q_CNT}\s+${SEQ_NUM}\s*$$ + ^\s*Version\s+${VERSION},\s+Retrans:\s+${RETRANS},\s+Retries:\s+${RETRIES},\s+Prefixes:\s+${PREFIXES}\s*$$ + ^\s*Topology-ids\s+from\s+peer\s+\-\s+${TOPOLOGY_IDS_FROM_PEER}\s*$$ -> Record + ^\s*Max\s+Nbrs\:\s+${MAX_NEIGHBORS}\,\s+Current\s+Nbrs\:\s+${CURRENT_NEIGHBORS}\s*$$ + ^\s*$$ + ^.* -> Error + +EOF diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index dfce172f04..4674d6be54 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -230,6 +230,7 @@ cisco_ios_show_port-security_interface_interface.textfsm, .*, cisco_ios, sh[[ow] cisco_ios_show_capability_feature_routing.textfsm, .*, cisco_ios, sh[[ow]] cap[[ability]] f[[eature]] r[[outing]] cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ip bgp vpnv4 all nei[[ghbors]] cisco_ios_show_ip_eigrp_interfaces_detail.textfsm, .*, cisco_ios, sh[[ow]] ip ei[[grp]] i[[nterfaces]] de[[tail]] +cisco_ios_show_ip_eigrp_neighbors_detail.textfsm, .*, cisco_ios, sh[[ow]] ip ei[[grp]] nei[[ghbors]] de[[tail]] cisco_ios_show_ip_dhcp_snooping_binding.textfsm, .*, cisco_ios, sh[[ow]] ip dhcp sn[[ooping]] bi[[nding]] cisco_ios_show_ip_ospf_database_network.textfsm, .*, cisco_ios, sh[[ow]] ip ospf data[[base]] ne[[twork]] cisco_ios_show_authentication_sessions.textfsm, .*, cisco_ios, show authen[[tication]] ses[[sions]] diff --git a/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.raw b/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.raw new file mode 100644 index 0000000000..734d55d95a --- /dev/null +++ b/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.raw @@ -0,0 +1,10 @@ +EIGRP-IPv4 Neighbors for AS(215) +H Address Interface Hold Uptime SRTT RTO Q Seq + (sec) (ms) Cnt Num +1 81.211.127.255 Tu5 13 18:52:46 55 330 0 1042408760 + Version 25.0/2.0, Retrans: 1, Retries: 0, Prefixes: 952 + Topology-ids from peer - 0 +0 83.151.157.254 Tu5 12 6d08h 50 300 0 564418354 + Version 25.0/2.0, Retrans: 6, Retries: 0, Prefixes: 952 + Topology-ids from peer - 0 +Max Nbrs: 0, Current Nbrs: 0 diff --git a/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.yml b/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.yml new file mode 100644 index 0000000000..41a3ddc6a1 --- /dev/null +++ b/tests/cisco_ios/show_ip_eigrp_neighbors_detail/cisco_ios_show_ip_eigrp_neighbors_detail.yml @@ -0,0 +1,36 @@ +--- +parsed_sample: + - as: "215" + h: "1" + ip_address: "81.211.127.255" + interface: "Tu5" + hold: "13" + uptime: "18:52:46" + srtt: "55" + rto: "330" + q_cnt: "0" + seq_num: "1042408760" + version: "25.0/2.0" + retrans: "1" + retries: "0" + prefixes: "952" + topology_ids_from_peer: "0" + max_neighbors: "0" + current_neighbors: "0" + - as: "215" + h: "0" + ip_address: "83.151.157.254" + interface: "Tu5" + hold: "12" + uptime: "6d08h" + srtt: "50" + rto: "300" + q_cnt: "0" + seq_num: "564418354" + version: "25.0/2.0" + retrans: "6" + retries: "0" + prefixes: "952" + topology_ids_from_peer: "0" + max_neighbors: "0" + current_neighbors: "0"