Skip to content

Commit d4cf1bc

Browse files
dduttAndryNick98
authored andcommitted
nxos lldp: Use detail versions of lldp/cdp to get more info
Signed-off-by: Dinesh Dutt <[email protected]>
1 parent c41bba9 commit d4cf1bc

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

suzieq/config/lldp.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,24 +118,28 @@ apply:
118118

119119
- version: all
120120
command:
121-
- command: show cdp neighbors | json native
122-
normalize: 'TABLE_cdp_neighbor_brief_info/ROW_cdp_neighbor_brief_info/*?/[
121+
- command: show cdp neighbors detail | json native
122+
normalize: 'TABLE_cdp_neighbor_detail_info/ROW_cdp_neighbor_detail_info/*?/[
123123
"interface: ifname?|",
124124
"intf_id: ifname?|ifname",
125-
"device_id: peerHostname?|",
126-
"platform_id: description?|",
125+
"sysname: peerHostname?|",
126+
"platform_id: peerPlatform?|",
127127
"port_id: peerIfname",
128+
"v4addr: mgmtIP?|",
129+
"version: description?|",
128130
"protocol: protocol?|cdp",
129131
]'
130132

131-
- command: show lldp neighbors | json native
132-
normalize: 'TABLE_nbor/ROW_nbor/*?/[
133-
"chassis_id: peerHostname?|",
133+
- command: show lldp neighbors detail | json native
134+
normalize: 'TABLE_nbor_detail/ROW_nbor_detail/*?/[
135+
"sys_name: peerHostname?|",
134136
"chassis_type: _chassisType",
135137
"l_port_id: ifname?|",
136138
"port_type: subtype?|",
137139
"port_id: peerIfname?|",
138-
"mgmt_addr: mgmtIP?|"
140+
"mgmt_addr: mgmtIP?|",
141+
"sys_desc: description?|",
142+
"enabled_capability: _capabilities?|",
139143
]'
140144

141145
panos:

0 commit comments

Comments
 (0)