You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value Required NEIGHBOR (\S+)
Value LOCAL_INTERFACE (\S+\s\S+)
Value CAPABILITY ((?:\w(?:\s(?!\s))?){0,})
Value PLATFORM (\S{2,}\s\S{2,}|\S+)
Value NEIGHBOR_INTERFACE (\S+\s\S+)
Start
^Device.*ID -> CDP
CDP
^${NEIGHBOR}$$
^\s+${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITY}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE} -> Record
^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITY}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE} -> Record
SAMPLE COMMAND OUTPUT
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID Local Intrfce Holdtme Capability Platform Port ID
SEP000000000000 Gig 1/0/16 155 H P IP Phone port 1
AP000000000 Gig 1/0/45 158 T B I AIR-CAP35 Gig 0
AP000000001 Gig 1/0/46 173 T B I AIR-CAP35 Gig 0
WAAS0000000 Gig 1/0/1 138 T OE474 InlinePort 1/1/lan
WAAS0000000 Gig 1/0/40 138 H OE474 Gig 1/0
router.domain.local
Gig 1/0/1 134 R B S CISCO2911 Gig 0/0
SEP000000000001 Gig 1/0/33 152 H P M IP Phone Port 1
SEP000000000002 Gig 1/0/29 173 H P M IP Phone Port 1
SEP000000000003 Gig 1/0/30 160 H P M IP Phone Port 1
SEP000000000004 Gig 1/0/14 169 H P M IP Phone Port 1
SEP000000000005 Gig 1/0/8 140 H P M IP Phone Port 1
SEP000000000006 Gig 1/0/13 135 H P M IP Phone Port 1
SEP000000000007 Gig 1/0/15 164 H P CTS-CODEC eth0
SEP000000000008 Gig 1/0/37 173 H P M IP Phone Port 1
SEP000000000009 Gig 1/0/34 176 H P M IP Phone Port 1
SEP00000000000A Gig 1/0/21 179 H P CTS-CODEC eth0
SEP00000000000B Gig 1/0/35 177 H P M IP Phone Port 1
SEP00000000000C Gig 1/0/24 164 H P M IP Phone Port 1
SEP00000000000D Gig 1/0/9 176 H P M IP Phone Port 1
SEP00000000000E Gig 1/0/17 131 H P M IP Phone Port 1
SEP00000000000F Gig 1/0/20 136 H P M IP Phone Port 1
SEP000000000010 Gig 1/0/36 162 H P M IP Phone Port 1
SUMMARY
For the CTS-CODEC devices, I get the following info:
{'capability': 'H',
'local_interface': 'Gig 1/0/15',
'neighbor': 'SEP000000000007',
'neighbor_interface': 'CTS-CODEC eth0',
'platform': 'P'}
Only the locat interface and neighbor are correct.
STEPS TO REPRODUCE
Using netmiko, send_command('show cdp neigh', use_textfsm=True)
Target is a Cisco Catalyst 2960 with MX300 codec
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
TEMPLATE USING
Value Required NEIGHBOR (\S+)
Value LOCAL_INTERFACE (\S+\s\S+)
Value CAPABILITY ((?:\w(?:\s(?!\s))?){0,})
Value PLATFORM (\S{2,}\s\S{2,}|\S+)
Value NEIGHBOR_INTERFACE (\S+\s\S+)
Start
^Device.*ID -> CDP
CDP
^${NEIGHBOR}$$
^\s+${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITY}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE} -> Record
^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+${CAPABILITY}\s+${PLATFORM}\s+${NEIGHBOR_INTERFACE} -> Record
SAMPLE COMMAND OUTPUT
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID Local Intrfce Holdtme Capability Platform Port ID
SEP000000000000 Gig 1/0/16 155 H P IP Phone port 1
AP000000000 Gig 1/0/45 158 T B I AIR-CAP35 Gig 0
AP000000001 Gig 1/0/46 173 T B I AIR-CAP35 Gig 0
WAAS0000000 Gig 1/0/1 138 T OE474 InlinePort 1/1/lan
WAAS0000000 Gig 1/0/40 138 H OE474 Gig 1/0
router.domain.local
Gig 1/0/1 134 R B S CISCO2911 Gig 0/0
SEP000000000001 Gig 1/0/33 152 H P M IP Phone Port 1
SEP000000000002 Gig 1/0/29 173 H P M IP Phone Port 1
SEP000000000003 Gig 1/0/30 160 H P M IP Phone Port 1
SEP000000000004 Gig 1/0/14 169 H P M IP Phone Port 1
SEP000000000005 Gig 1/0/8 140 H P M IP Phone Port 1
SEP000000000006 Gig 1/0/13 135 H P M IP Phone Port 1
SEP000000000007 Gig 1/0/15 164 H P CTS-CODEC eth0
SEP000000000008 Gig 1/0/37 173 H P M IP Phone Port 1
SEP000000000009 Gig 1/0/34 176 H P M IP Phone Port 1
SEP00000000000A Gig 1/0/21 179 H P CTS-CODEC eth0
SEP00000000000B Gig 1/0/35 177 H P M IP Phone Port 1
SEP00000000000C Gig 1/0/24 164 H P M IP Phone Port 1
SEP00000000000D Gig 1/0/9 176 H P M IP Phone Port 1
SEP00000000000E Gig 1/0/17 131 H P M IP Phone Port 1
SEP00000000000F Gig 1/0/20 136 H P M IP Phone Port 1
SEP000000000010 Gig 1/0/36 162 H P M IP Phone Port 1
SUMMARY
For the CTS-CODEC devices, I get the following info:
{'capability': 'H',
'local_interface': 'Gig 1/0/15',
'neighbor': 'SEP000000000007',
'neighbor_interface': 'CTS-CODEC eth0',
'platform': 'P'}
Only the locat interface and neighbor are correct.
STEPS TO REPRODUCE
Using netmiko, send_command('show cdp neigh', use_textfsm=True)
Target is a Cisco Catalyst 2960 with MX300 codec
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: