Skip to content

Commit 1d3cbbe

Browse files
Enric Perpinyà Pitarchmjbear
andauthored
Improve Huawei VRP: display lldp neighbor (#2063)
* Improving template for Huawei VRP: `display lldp neighbor` * Improving tests * Remove some extra blank lines * Remove another blank line * Fix an overzealous blank line removal I tried to reduce three blank lines down to one and it pulled them all. *sigh* * Regenerate vrp dis lldp neigh structured data * Adjust whitespace regex around colon character Huawei VRP's output is a bit odd with no space after the colon. One of these days someone at Huawei will probably see that and change it. * Add whitespace regex after colon, before cap grp For a couple of VLAN related lines, may as well account for whitespace for added flexibility like other lines. * Refactor optional regex in huawei vrp dis lldp nei * Add a couple of missed whitespace changes around colons * Refactor and simplify a few optional regexes * Update more whitespace around colon --------- Co-authored-by: Michael Bear <38406045+mjbear@users.noreply.github.com>
1 parent c96abc3 commit 1d3cbbe

7 files changed

Lines changed: 566 additions & 74 deletions
Lines changed: 89 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,102 @@
1-
Value Required LOCAL_INTERFACE (\S+)
2-
Value CHASSIS_ID (.+?)
1+
Value Required,Key LOCAL_INTERFACE (\S.+\S)
2+
Value CHASSIS_TYPE (\S.+\S)
3+
Value CHASSIS_ID (\S.+\S)
4+
Value PORT_ID_TYPE (\S.+\S)
35
Value MANUFACTURER (.*?)
46
Value PLATFORM (.*?)
57
Value NEIGHBOR_PORT_ID (.*?)
6-
Value NEIGHBOR_INTERFACE (.*?)
7-
Value NEIGHBOR_NAME (.+?)
8-
Value List NEIGHBOR_DESCRIPTION (.*)
8+
Value NEIGHBOR_INTERFACE (\S.+\S)
9+
Value NEIGHBOR_NAME (\S.+\S)
10+
Value List NEIGHBOR_DESCRIPTION (\S.+\S)
11+
Value SYSTEM_CAPABILITIES_SUPPORTED (\S.+\S)
912
Value CAPABILITIES (.*?)
13+
Value MGMT_ADDRESS_TYPE (\S+)
1014
Value MGMT_ADDRESS (\S+)
15+
Value EXPIRED_TIME (\d+)
1116
Value VLAN_ID (\d+)
17+
Value VLAN_1_NAME (\S.+\S)
1218
Value SERIAL (\S+)
19+
Value OID (\S+)
20+
Value AUTONEGOTIATION_SUPPORTED (\S+)
21+
Value AUTONEGOTIATION_ENABLED (\S+)
22+
Value OPERATION_MODE (\S.+\S)
23+
Value POWER_PORT_CLASS (\S+)
24+
Value PSE_POWER_SUPPORTED (\S+)
25+
Value PSE_POWER_ENABLED (\S+)
26+
Value PSE_PAIRS_CONTROL_ABILITY (\S+)
27+
Value POWER_PAIRS (\S+)
28+
Value PORT_POWER_CLASSIFICATION (\S+)
29+
Value LINK_AGGREGATION_SUPPORTED (\S+)
30+
Value LINK_AGGREGATION_ENABLED (\S+)
31+
Value AGGREGATION_PORT_ID (\d+)
32+
Value MAXIMUM_FRAME_SIZE (\d+)
33+
Value MED_DEVICE_CLASS (\S.+\S)
34+
Value FIRMWARE_REVISION (\S.+\S)
35+
Value HARDWARE_REVISION (\S.+\S)
1336

1437
Start
15-
^${LOCAL_INTERFACE}\s+has\s+\d+\s+neighbor(s|\(s\)):$$
16-
^\S+\s+has\s+\d+\s+neighbors
17-
^Neighbor\s+index
18-
^Chassis\s+type
19-
^Chassis\s+ID\s+:${CHASSIS_ID}$$
20-
^Port\s+ID\s+type
21-
^Port\s+ID\s+:${NEIGHBOR_PORT_ID}\s*$$
22-
^Port\s+description\s+:${NEIGHBOR_INTERFACE}\s*$$
23-
^System\s+name\s+:${NEIGHBOR_NAME}\s*$$
24-
^System\s+description\s+:${NEIGHBOR_DESCRIPTION} -> SystemDescription
25-
^System\s+capabilities\s+supported
26-
^System\s+capabilities\s+enabled\s+:${CAPABILITIES}\s*$$
27-
^Management\s+address\s+type
28-
^Management\s+address\s*(value\s*)?:\s*${MGMT_ADDRESS}
29-
^Expired\s+time
30-
^Port\s+VLAN\s+ID\(PVID\)\s+:${VLAN_ID}
31-
^VLAN\s+name\s+of\s+VLAN
32-
^Protocol\s+identity
33-
^Auto-negotiation
34-
^OperMau
35-
^Power
36-
^OID
37-
^PSE
38-
^Port\s+power
39-
^Link\s+aggregation
40-
^Aggregation
41-
^Maximum\s+frame\s+Size
42-
^MED\s+Device\s+information -> MED
43-
^\s*$$
38+
^\s*${LOCAL_INTERFACE}\s+has\s+\d+\s+neighbor(s|\(s\)):\s*$$
39+
^\s*\S.+\S\s+has\s+\d+\s+neighbor(s|\(s\))\s*$$
40+
^\s*Neighbor\s+index\s*:\s*\d+\s*$$
41+
^\s*Chassis\s+type\s*:\s*${CHASSIS_TYPE}\s*$$
42+
^\s*Chassis\s+ID\s*:\s*${CHASSIS_ID}\s*$$
43+
^\s*Port\s+ID\s+type\s*:\s*${PORT_ID_TYPE}\s*$$
44+
^\s*Port\s+ID\s*:\s*${NEIGHBOR_PORT_ID}\s*$$
45+
^\s*Port\s+description\s*:\s*${NEIGHBOR_INTERFACE}?\s*$$
46+
^\s*System\s+name\s*:\s*${NEIGHBOR_NAME}?\s*$$
47+
^\s*System\s+description\s*:\s*${NEIGHBOR_DESCRIPTION}\s*$$ -> SystemDescription
48+
^\s*System\s+capabilities\s+supported\s*:\s*${SYSTEM_CAPABILITIES_SUPPORTED}\s*$$
49+
^\s*System\s+capabilities\s+enabled\s*:\s*${CAPABILITIES}\s*$$
50+
^\s*Management\s+address\s+type\s*:\s*${MGMT_ADDRESS}\s*$$
51+
^\s*Management\s+address\s*(value\s*)?:\s*${MGMT_ADDRESS}\s*$$
52+
^\s*OID\s*:\s*${OID}?\s*$$
53+
^\s*Expired\s+time\s*:\s*${EXPIRED_TIME}s\s*$$
54+
^\s*Port\s+VLAN\s+ID\(PVID\)\s*:\s*${VLAN_ID}\s*$$
55+
^\s*VLAN\s+name\s+of\s+VLAN\s*1\s*:\s*${VLAN_1_NAME}\s*$$
56+
^\s*Protocol\s+identity
57+
^\s*Auto-negotiation\s+supported\s*:\s*${AUTONEGOTIATION_SUPPORTED}\s*$$
58+
^\s*Auto-negotiation\s+enabled\s*:\s*${AUTONEGOTIATION_ENABLED}\s*$$
59+
^\s*OperMau\s*:\s*${OPERATION_MODE}\s*$$
60+
^\s*Power\s+port\s+class\s*:\s*${POWER_PORT_CLASS}\s*$$
61+
^\s*PSE\s+power\s+supported\s*:\s*${PSE_POWER_SUPPORTED}\s*$$
62+
^\s*PSE\s+power\s+enabled\s*:\s*${PSE_POWER_ENABLED}\s*$$
63+
^\s*PSE\s+pairs\s+control\s+ability\s*:\s*${PSE_PAIRS_CONTROL_ABILITY}\s*$$
64+
^\s*Power\s+pairs\s*:\s*${POWER_PAIRS}\s*$$
65+
^\s*Port\s+power\s+classification\s*:\s*${PORT_POWER_CLASSIFICATION}\s*$$
66+
^\s*Link\s+aggregation\s+supported\s*:\s*${LINK_AGGREGATION_SUPPORTED}\s*$$
67+
^\s*Link\s+aggregation\s+enabled\s*:\s*${LINK_AGGREGATION_ENABLED}\s*$$
68+
^\s*Aggregation\s+port\s+ID\s*:\s*${AGGREGATION_PORT_ID}\s*$$
69+
^\s*Maximum\s+frame\s+Size\s*:\s*${MAXIMUM_FRAME_SIZE}\s*$$
70+
^\s*MED\s+Device\s+information\s*$$
71+
^\s*Device\s+class\s*:\s*${MED_DEVICE_CLASS}\s*$$
72+
^\s*HardwareRev\s*:\s*${HARDWARE_REVISION}\s*$$
73+
^\s*FirmwareRev\s*:\s*(NA|${FIRMWARE_REVISION})\s*$$ -> Record
74+
^\s*SoftwareRev\s*:\s*(\S.+\S)\s*$$
75+
^\s*SerialNum\s*:\s*(NA|\S.+\S)\s*$$
76+
^\s*Manufacturer\s+name\s*:\s*(\S.+\S)\s*$$
77+
^\s*Model\s+name\s*:\s*(\S.+\S)\s*$$
78+
^\s*Asset\s+tracking\s+identifier\s*:\s*(NA|\S.+\S)\s*$$
79+
^\s*Media\s+policy\s+type\s*:\s*(\S+)\s*$$
80+
^\s*Unknown\s+Policy\s*:\s*(\S+)\s*$$
81+
^\s*VLAN\s+tagged\s*:\s*(\S+)\s*$$
82+
^\s*Media\s+policy\s+VlanID\s*:\s*(\d+)\s*$$
83+
^\s*Media\s+policy\s+L2\s+priority\s*:\s*(\d+)\s*$$
84+
^\s*Media\s+policy\s+Dscp\s*:\s*(\d+)\s*$$
85+
^\s*Power\s+Type\s*:\s*(\S+)\s*$$
86+
^\s*PoE\s+PSE\s+power\s+source\s*:\s*(\S+)\s*$$
87+
^\s*Port\s+PSE\s+Priority\s*:\s*(\S+)\s*$$
88+
^\s*Port\s+Available\s+power\s+value\s*:\s*(\d+)\s*$$
89+
^\s*Location\s+format\s*:\s*(\S.+\S)\s*$$
90+
^\s*Location\s+information\s*:\s*(\S.+\S)\s*$$
91+
^\s*Ca\s+type\s+Ca\s+value\s*$$
92+
^\s+$$
4493
^. -> Error
4594

4695
SystemDescription
47-
^${NEIGHBOR_DESCRIPTION} -> IgnoreDescription
48-
49-
IgnoreDescription
50-
^System\s+capabilities\s+supported -> Start
51-
^${NEIGHBOR_DESCRIPTION}
52-
^\s*$$
53-
^.*$$ -> Error
54-
55-
MED
56-
^Device\s+class
57-
^HardwareRev
58-
^FirmwareRev
59-
^SoftwareRev
60-
^SerialNum\s+:${SERIAL}
61-
^Manufacturer\s+name\s+:${MANUFACTURER}\s*$$
62-
^Model\s+name\s+:${PLATFORM}\s*$$
63-
^Asset\s+tracking
64-
^Media\s+policy\s+type
65-
^Unknown\s+Policy
66-
^VLAN\s+tagged
67-
^Media
68-
^Power
69-
^PoE
70-
^Port\s+PSE\s+Priority
71-
^Port\s+Available\s+power
72-
^Location\s+format
73-
^Location\s+information
74-
^Ca
75-
^\S+\s+has\s+\d+\s+neighbors -> Record Start
76-
^\s*$$
96+
^\s*System\s+capabilities\s+supported\s*:\s*${SYSTEM_CAPABILITIES_SUPPORTED}\s*$$ -> Start
97+
^\s*System\s+capabilities\s+enabled\s*:\s*${CAPABILITIES}\s*$$ -> Start
98+
^\s*Management\s+address\s+type\s*:\s*${MGMT_ADDRESS}\s*$$ -> Start
99+
^\s*Management\s+address\s*(value\s*)?:\s*${MGMT_ADDRESS}\s*$$ -> Start
100+
^\s*Expired\s+time\s*:\s*${EXPIRED_TIME}s\s*$$ -> Start
101+
^\s*${NEIGHBOR_DESCRIPTION}\s*$$
77102
^. -> Error
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
Value Required,Key LOCAL_INTERFACE (\S.+\S)
2+
Value SOFTWARE_REVISION (\S.+\S)
3+
Value SERIAL_NUMBER (\S.+\S)
4+
Value MANUFACTURER_NAME (\S.+\S)
5+
Value MODEL_NAME (\S.+\S)
6+
Value ASSET_TRACKING_IDENTIFIER (\S.+\S)
7+
Value MEDIA_POLICY_TYPE (\S.+\S)
8+
Value UNKNOWN_POLICY (\S.+\S)
9+
Value VLAN_TAGGED (\S+)
10+
Value MEDIA_POLICY_VLAN_ID (\d+)
11+
Value MEDIA_POLICY_L2_PRIORITY (\d+)
12+
Value MEDIA_POLICY_DSCP (\d+)
13+
Value POWER_TYPE (\S.+\S)
14+
Value POE_PSE_POWER_SOURCE (\S.+\S)
15+
Value PORT_PSE_PRIORITY (\S.+\S)
16+
Value PORT_AVAILABLE_POWER_VALUE (\d+)
17+
Value LOCATION_FORMAT (\S.+\S)
18+
Value LOCATION_INFORMATION (\S.+\S)
19+
20+
Start
21+
^\s*${LOCAL_INTERFACE}\s+has\s+\d+\s+neighbor(s|\(s\)):\s*$$
22+
^\s*\S.+\S\s+has\s+\d+\s+neighbor(s|\(s\))\s*$$
23+
^\s*Neighbor\s+index\s*:\s*\d+\s*$$
24+
^\s*Chassis\s+type\s*:\s*(\S.+\S)\s*$$
25+
^\s*Chassis\s+ID\s*:\s*(\S.+\S)\s*$$
26+
^\s*Port\s+ID\s+type\s*:\s*(\S.+\S)\s*$$
27+
^\s*Port\s+ID\s*:\s*(.*?)\s*$$
28+
^\s*Port\s+description\s*:\s*(?:\S.+\S)?\s*$$
29+
^\s*System\s+name\s*:\s*(?:\S.+\S)?\s*$$
30+
^\s*System\s+description\s*:\s*(\S.+\S)\s*$$ -> SystemDescription
31+
^\s*System\s+capabilities\s+supported\s*:\s*(\S.+\S)\s*$$
32+
^\s*System\s+capabilities\s+enabled\s*:\s*(.*?)\s*$$
33+
^\s*Management\s+address\s+type\s*:\s*(\S.+\S)\s*$$
34+
^\s*Management\s+address\s*(value\s*)?:\s*(\S.+\S)\s*$$
35+
^\s*OID\s*:\s*(\S.+\S)?\s*$$
36+
^\s*Expired\s+time\s*:\s*(\d+)s\s*$$
37+
^\s*Port\s+VLAN\s+ID\(PVID\)\s*:\s*(\d+)\s*$$
38+
^\s*VLAN\s+name\s+of\s+VLAN\s*1\s*:\s*(\S.+\S)\s*$$
39+
^\s*Protocol\s+identity
40+
^\s*Auto-negotiation\s+supported\s*:\s*(\S.+\S)\s*$$
41+
^\s*Auto-negotiation\s+enabled\s*:\s*(\S.+\S)\s*$$
42+
^\s*OperMau\s*:\s*(\S.+\S)\s*$$
43+
^\s*Power\s+port\s+class\s*:\s*(\S+)\s*$$
44+
^\s*PSE\s+power\s+supported\s*:\s*(\S+)\s*$$
45+
^\s*PSE\s+power\s+enabled\s*:\s*(\S+)\s*$$
46+
^\s*PSE\s+pairs\s+control\s+ability\s*:\s*(\S+)\s*$$
47+
^\s*Power\s+pairs\s*:\s*(\S.+\S)\s*$$
48+
^\s*Port\s+power\s+classification\s*:\s*(\S.+\S)\s*$$
49+
^\s*Link\s+aggregation\s+supported\s*:\s*(\S+)\s*$$
50+
^\s*Link\s+aggregation\s+enabled\s*:\s*(\S+)\s*$$
51+
^\s*Aggregation\s+port\s+ID\s*:\s*(\d+)\s*$$
52+
^\s*Maximum\s+frame\s+Size\s*:\s*(\d+)\s*$$
53+
^\s*MED\s+Device\s+information\s*$$
54+
^\s*Device\s+class\s*:\s*(\S.+\S)\s*$$
55+
^\s*HardwareRev\s*:\s*(\S.+\S)\s*$$
56+
^\s*FirmwareRev\s*:\s*(\S+)\s*$$
57+
^\s*SoftwareRev\s*:\s*${SOFTWARE_REVISION}\s*$$
58+
^\s*SerialNum\s*:\s*(NA|${SERIAL_NUMBER})\s*$$
59+
^\s*Manufacturer\s+name\s*:\s*${MANUFACTURER_NAME}\s*$$
60+
^\s*Model\s+name\s*:\s*${MODEL_NAME}\s*$$
61+
^\s*Asset\s+tracking\s+identifier\s*:\s*(NA|${ASSET_TRACKING_IDENTIFIER})\s*$$
62+
^\s*Media\s+policy\s+type\s*:\s*${MEDIA_POLICY_TYPE}\s*$$
63+
^\s*Unknown\s+Policy\s*:\s*${UNKNOWN_POLICY}\s*$$
64+
^\s*VLAN\s+tagged\s*:\s*${VLAN_TAGGED}\s*$$
65+
^\s*Media\s+policy\s+VlanID\s*:\s*${MEDIA_POLICY_VLAN_ID}\s*$$
66+
^\s*Media\s+policy\s+L2\s+priority\s*:\s*${MEDIA_POLICY_L2_PRIORITY}\s*$$
67+
^\s*Media\s+policy\s+Dscp\s*:\s*${MEDIA_POLICY_DSCP}\s*$$
68+
^\s*Power\s+Type\s*:\s*${POWER_TYPE}\s*$$
69+
^\s*PoE\s+PSE\s+power\s+source\s*:\s*${POE_PSE_POWER_SOURCE}\s*$$
70+
^\s*Port\s+PSE\s+Priority\s*:\s*${PORT_PSE_PRIORITY}\s*$$
71+
^\s*Port\s+Available\s+power\s+value\s*:\s*${PORT_AVAILABLE_POWER_VALUE}\s*$$
72+
^\s*Location\s+format\s*:\s*${LOCATION_FORMAT}\s*$$
73+
^\s*Location\s+information\s*:\s*${LOCATION_INFORMATION}\s*$$
74+
^\s*Ca\s+type\s+Ca\s+value\s*$$ -> Record
75+
^\s+$$
76+
^. -> Error
77+
78+
SystemDescription
79+
^\s*System\s+capabilities\s+supported\s*:\s*(\S.+\S)\s*$$ -> Start
80+
^\s*System\s+capabilities\s+enabled\s*:\s*(.*?)\s*$$ -> Start
81+
^\s*Management\s+address\s+type\s*:\s*(\S.+\S)\s*$$ -> Start
82+
^\s*Management\s+address\s*(value\s*)?:\s*(\S.+\S)\s*$$ -> Start
83+
^\s*Expired\s+time\s*:\s*(\d+)s\s*$$ -> Start
84+
^\s*(\S.+\S)\s*$$
85+
^. -> Error

ntc_templates/templates/index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ huawei_smartax_display_mem.textfsm, .*, huawei_smartax, di[[splay]] mem[[ory]]\s
738738
huawei_smartax_port_vlan.textfsm, .*, huawei_smartax, port vlan\s*
739739
huawei_smartax_ont_add.textfsm, .*, huawei_smartax, ont add\s*
740740

741+
huawei_vrp_display_lldp_neighbor.textfsm:huawei_vrp_display_lldp_neighbor2.textfsm, .*, huawei_vrp, dis[[play]] lldp nei[[ghbor]]
741742
huawei_vrp_display_traffic-filter_applied-record.textfsm, .*, huawei_vrp, dis[[play]] traffic-filter applied-record
742743
huawei_vrp_display_ip_vpn-instance_interface.textfsm, .*, huawei_vrp, di[[splay]] ip vpn[[-instance]] interface
743744
huawei_vrp_display_snmp-agent_community_read.textfsm, .*, huawei_vrp, dis[[play]] snm[[p-agent]] c[[ommunity]] (r[[ead]]|w[[rite]])
@@ -750,7 +751,6 @@ huawei_vrp_display_ip_vpn-instance.textfsm, .*, huawei_vrp, di[[splay]] ip vpn[[
750751
huawei_vrp_display_service-set_all.textfsm, .*, huawei_vrp, dis[[play]] service-set all
751752
huawei_vrp_display_ipv6_neighbors.textfsm, .*, huawei_vrp, dis[[play]] ipv6 n[[eighbors]]
752753
huawei_vrp_display_mpls_te_tunnel.textfsm, .*, huawei_vrp, dis[[play]] mpls te tunnel
753-
huawei_vrp_display_lldp_neighbor.textfsm, .*, huawei_vrp, dis[[play]] lldp nei[[ghbor]]
754754
huawei_vrp_display_http_server.textfsm, .*, huawei_vrp, di[[splay]] h[[ttp]] s[[erver]] *$
755755
huawei_vrp_display_mac-address.textfsm, .*, huawei_vrp, disp[[lay]] mac[[-address]]
756756
huawei_vrp_display_temperature.textfsm, .*, huawei_vrp, dis[[play]] tem[[perature]]
Lines changed: 88 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,31 @@
11
---
22
parsed_sample:
3-
- capabilities: "bridge"
3+
- aggregation_port_id: "0"
4+
asset_tracking_identifier: ""
5+
autonegotiation_enabled: "Yes"
6+
autonegotiation_supported: "Yes"
7+
capabilities: "bridge"
48
chassis_id: "f55f-c2c5-e180"
9+
chassis_type: "macAddress"
10+
expired_time: "102"
11+
firmware_revision: ""
12+
hardware_revision: "WS-C2960S-48LPS-L (PowerPC):F0"
13+
link_aggregation_enabled: "No"
14+
link_aggregation_supported: "No"
515
local_interface: "GigabitEthernet0/0/1"
6-
manufacturer: "Cisco Systems, Inc."
16+
location_format: "Civic Address LCI"
17+
location_information: "what(LLDP-MED Endpoint) country( )"
18+
manufacturer: ""
19+
manufacturer_name: "Cisco Systems, Inc."
20+
maximum_frame_size: "0"
21+
med_device_class: "Network Connectivity"
22+
media_policy_dscp: "0"
23+
media_policy_l2_priority: "0"
24+
media_policy_type: "Voice"
25+
media_policy_vlan_id: "0"
726
mgmt_address: "192.168.0.240"
27+
mgmt_address_type: ""
28+
model_name: "WS-C2960S-48LPS-L"
829
neighbor_description:
930
- "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7,\
1031
\ RELEASE SOFTWARE (fc1)"
@@ -14,14 +35,54 @@ parsed_sample:
1435
neighbor_interface: "GigabitEthernet1/0/1"
1536
neighbor_name: "tsa-2960-sw01"
1637
neighbor_port_id: "Gi1/0/1"
17-
platform: "WS-C2960S-48LPS-L"
18-
serial: "NA"
38+
oid: ""
39+
operation_mode: "speed(1000)/duplex(Full)"
40+
platform: ""
41+
poe_pse_power_source: "PSE"
42+
port_available_power_value: "0"
43+
port_id_type: "interfaceName"
44+
port_power_classification: "Unknown"
45+
port_pse_priority: "Low"
46+
power_pairs: "Unknown"
47+
power_port_class: "PD"
48+
power_type: "PSE"
49+
pse_pairs_control_ability: "No"
50+
pse_power_enabled: "No"
51+
pse_power_supported: "No"
52+
serial: ""
53+
serial_number: ""
54+
software_revision: "12.2(55)SE7"
55+
system_capabilities_supported: "bridge router"
56+
unknown_policy: "Unknown"
57+
vlan_1_name: ""
1958
vlan_id: "1"
20-
- capabilities: "bridge"
59+
vlan_tagged: "No"
60+
- aggregation_port_id: "0"
61+
asset_tracking_identifier: ""
62+
autonegotiation_enabled: "Yes"
63+
autonegotiation_supported: "Yes"
64+
capabilities: "bridge"
2165
chassis_id: "f41f-c2c5-e180"
66+
chassis_type: "macAddress"
67+
expired_time: "102"
68+
firmware_revision: ""
69+
hardware_revision: "WS-C2960S-48LPS-L (PowerPC):F0"
70+
link_aggregation_enabled: "No"
71+
link_aggregation_supported: "No"
2272
local_interface: "GigabitEthernet0/0/8"
23-
manufacturer: "Cisco Systems, Inc."
73+
location_format: "Civic Address LCI"
74+
location_information: "what(LLDP-MED Endpoint) country( )"
75+
manufacturer: ""
76+
manufacturer_name: "Cisco Systems, Inc."
77+
maximum_frame_size: "0"
78+
med_device_class: "Network Connectivity"
79+
media_policy_dscp: "0"
80+
media_policy_l2_priority: "0"
81+
media_policy_type: "Voice"
82+
media_policy_vlan_id: "0"
2483
mgmt_address: "192.168.0.241"
84+
mgmt_address_type: ""
85+
model_name: "WS-C2960S-48LPS-L"
2586
neighbor_description:
2687
- "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7,\
2788
\ RELEASE SOFTWARE (fc1)"
@@ -31,6 +92,25 @@ parsed_sample:
3192
neighbor_interface: "GigabitEthernet1/0/2"
3293
neighbor_name: "tsa-2960-sw01"
3394
neighbor_port_id: "Gi1/0/2"
34-
platform: "WS-C2960S-48LPS-L"
35-
serial: "NA"
95+
oid: ""
96+
operation_mode: "speed(1000)/duplex(Full)"
97+
platform: ""
98+
poe_pse_power_source: "PSE"
99+
port_available_power_value: "0"
100+
port_id_type: "interfaceName"
101+
port_power_classification: "Unknown"
102+
port_pse_priority: "Low"
103+
power_pairs: "Unknown"
104+
power_port_class: "PD"
105+
power_type: "PSE"
106+
pse_pairs_control_ability: "No"
107+
pse_power_enabled: "No"
108+
pse_power_supported: "No"
109+
serial: ""
110+
serial_number: ""
111+
software_revision: "12.2(55)SE7"
112+
system_capabilities_supported: "bridge router"
113+
unknown_policy: "Unknown"
114+
vlan_1_name: ""
36115
vlan_id: "1"
116+
vlan_tagged: "No"

0 commit comments

Comments
 (0)