Debian Codegraph @

ntc_templates/templates/broadcom_icos_show_lldp_remote-device_all.textfsm

raw
1 Value LOCAL_INTERFACE (\S+)
2 Value REMOTE_ID (\S+)
3 Value CHASSIS_ID (\S+)
4 Value PORT_ID (\S+)
5 Value SYSTEM_NAME (\S+)
6
7 Start
8 # Captures show lldp remote-device all for:
9 # Accton AS4610-54P, Accton AS5610-52X, Quanta LY2R, Quanta LB9, DNI AG3448P-R
10 # Raw data is the same in the case of all those devices
11 ^LLDP
12 ^Local
13 ^\s*Interface\s+RemID\s+Chassis\s+ID\s+Port\s+ID\s+System\s+Name$$
14 ^-+
15 ^\s*${LOCAL_INTERFACE}\s+${REMOTE_ID}\s+${CHASSIS_ID}\s+${PORT_ID}\s+${SYSTEM_NAME} -> Record
16 # Match records that only include the interface value
17 ^\s*${LOCAL_INTERFACE} -> Record
18 ^\s*$$
19 ^. -> Error