-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
329 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
test/eos/mocked_data/test_get_lldp_neighbors_detail/issue1153/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"Ethernet1/1": [ | ||
{ | ||
"parent_interface": "Ethernet1/1", | ||
"remote_port": "1ce7.1003.5413", | ||
"remote_port_description": "eth0", | ||
"remote_system_name": "some-server", | ||
"remote_system_description": "Ubuntu 18.04.3 LTS Linux 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64", | ||
"remote_chassis_id": "1C:E7:10:03:54:13", | ||
"remote_system_capab": [ | ||
"bridge", | ||
"router", | ||
"station", | ||
"wlan-access-point" | ||
], | ||
"remote_system_enable_capab": [ | ||
"bridge", | ||
"router" | ||
] | ||
} | ||
], | ||
"Ethernet26/1": [ | ||
{ | ||
"parent_interface": "Ethernet26/1", | ||
"remote_port": "et-0/0/20", | ||
"remote_port_description": "et-0/0/20", | ||
"remote_system_name": "some-other-switch", | ||
"remote_system_description": "boom boom", | ||
"remote_chassis_id": "04:43:10:03:54:13", | ||
"remote_system_capab": [ | ||
"bridge", | ||
"router" | ||
], | ||
"remote_system_enable_capab": [ | ||
"bridge", | ||
"router" | ||
] | ||
} | ||
], | ||
"Ethernet27/1": [ | ||
{ | ||
"parent_interface": "Ethernet27/1", | ||
"remote_port": "et-0/0/20", | ||
"remote_port_description": "et-0/0/20", | ||
"remote_system_name": "some-switch", | ||
"remote_system_description": "blah blih bleh", | ||
"remote_chassis_id": "FC:66:10:03:54:13", | ||
"remote_system_capab": [ | ||
"bridge", | ||
"router" | ||
], | ||
"remote_system_enable_capab": [ | ||
"bridge", | ||
"router" | ||
] | ||
} | ||
] | ||
} |
265 changes: 265 additions & 0 deletions
265
...eos/mocked_data/test_get_lldp_neighbors_detail/issue1153/show_lldp_neighbors__detail.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,265 @@ | ||
{ | ||
"lldpNeighbors": { | ||
"Ethernet23/1": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet1/1": { | ||
"lldpNeighborInfo": [ | ||
{ | ||
"systemCapabilities": { | ||
"bridge": true, | ||
"wlanAccessPoint": false, | ||
"router": true, | ||
"stationOnly": false | ||
}, | ||
"lastChangeTime": 1584043134.2644186, | ||
"neighborInterfaceInfo": { | ||
"portAndProtocolVlanEnabled": {}, | ||
"linkAggregationStatus": "capableAndEnabled", | ||
"unknownTlvs": [], | ||
"interfaceIdType": "macAddress", | ||
"interfaceId": "1ce7.1003.5413", | ||
"interfaceDescription": "eth0", | ||
"autoNegCapability": "capableAndEnabled", | ||
"autoNegAdvertisedCapabilities": [ | ||
"1000BASE-X (full-duplex)", | ||
"Other" | ||
], | ||
"protocolIdentityInfo": [], | ||
"portAndProtocolVlanSupported": {}, | ||
"operMauType": "Unknown", | ||
"vlanNames": {}, | ||
"linkAggregationInterfaceId": 4, | ||
"unknownOrgDefinedTlvs": [] | ||
}, | ||
"neighborDiscoveryTime": 1584043104.2394743, | ||
"lastContactTime": 1586942201.0405219, | ||
"chassisId": "1ce7.1003.5413", | ||
"systemName": "some-server", | ||
"systemDescription": "Ubuntu 18.04.3 LTS Linux 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64", | ||
"ttl": 120, | ||
"managementAddresses": [ | ||
{ | ||
"oidString": "", | ||
"interfaceNumType": "ifIndex", | ||
"interfaceNum": 4, | ||
"address": "10.0.0.1", | ||
"addressType": "ipv4" | ||
}, | ||
{ | ||
"oidString": "", | ||
"interfaceNumType": "ifIndex", | ||
"interfaceNum": 4, | ||
"address": "fe80::1", | ||
"addressType": "ipv6" | ||
} | ||
], | ||
"chassisIdType": "macAddress" | ||
} | ||
] | ||
}, | ||
"Ethernet1/2": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet1/3": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet1/4": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet23/4": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet22/1": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet22/2": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet22/3": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet22/4": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet23/3": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet7/2": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet7/3": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet7/1": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet21/3": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet21/2": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet7/4": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet6/3": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet6/2": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet6/1": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet20/2": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet20/3": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet20/1": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet27/4": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet27/1": { | ||
"lldpNeighborInfo": [ | ||
{ | ||
"systemCapabilities": { | ||
"bridge": true, | ||
"router": true | ||
}, | ||
"lastChangeTime": 1582799101.9668741, | ||
"neighborInterfaceInfo": { | ||
"portAndProtocolVlanEnabled": {}, | ||
"linkAggregationStatus": "capableAndDisabled", | ||
"unknownTlvs": [], | ||
"interfaceIdType": "interfaceName", | ||
"interfaceId": "\"et-0/0/20\"", | ||
"interfaceDescription": "et-0/0/20", | ||
"autoNegCapability": "notCapable", | ||
"autoNegAdvertisedCapabilities": [], | ||
"maxFrameSize": 9192, | ||
"portAndProtocolVlanSupported": {}, | ||
"operMauType": "Unknown", | ||
"medInfo": { | ||
"capabilities": { | ||
"deviceType": "networkConnectivity", | ||
"networkPolicy": true, | ||
"inventory": false, | ||
"capabilities": true, | ||
"extendedPd": false, | ||
"extendedPse": true, | ||
"location": true | ||
}, | ||
"networkPolicies": [] | ||
}, | ||
"vlanNames": {}, | ||
"protocolIdentityInfo": [], | ||
"linkAggregationInterfaceId": 0, | ||
"unknownOrgDefinedTlvs": [ | ||
{ | ||
"ouiStr": "00-90-69", | ||
"subType": 1, | ||
"tlvLines": [ | ||
"57 48 33 36 31 39 31 32 30 34 38 31" | ||
] | ||
} | ||
] | ||
}, | ||
"neighborDiscoveryTime": 1582799101.9668741, | ||
"lastContactTime": 1586942203.153205, | ||
"chassisId": "fc66.1003.5413", | ||
"systemName": "some-switch", | ||
"systemDescription": "blah blih bleh", | ||
"ttl": 120, | ||
"managementAddresses": [ | ||
{ | ||
"oidString": "0.1.3.6.1.2.1.31.1.1.1.1.17", | ||
"interfaceNumType": "ifIndex", | ||
"interfaceNum": 17, | ||
"address": "10.0.0.1", | ||
"addressType": "ipv4" | ||
} | ||
], | ||
"chassisIdType": "macAddress" | ||
} | ||
] | ||
}, | ||
"Ethernet27/3": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet27/2": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet26/4": { | ||
"lldpNeighborInfo": [] | ||
}, | ||
"Ethernet26/1": { | ||
"lldpNeighborInfo": [ | ||
{ | ||
"systemCapabilities": { | ||
"bridge": true, | ||
"router": true | ||
}, | ||
"lastChangeTime": 1582796476.2745652, | ||
"neighborInterfaceInfo": { | ||
"portAndProtocolVlanEnabled": {}, | ||
"linkAggregationStatus": "capableAndDisabled", | ||
"unknownTlvs": [], | ||
"interfaceIdType": "interfaceName", | ||
"interfaceId": "\"et-0/0/20\"", | ||
"interfaceDescription": "et-0/0/20", | ||
"autoNegCapability": "notCapable", | ||
"autoNegAdvertisedCapabilities": [], | ||
"maxFrameSize": 9192, | ||
"portAndProtocolVlanSupported": {}, | ||
"operMauType": "Unknown", | ||
"medInfo": { | ||
"capabilities": { | ||
"deviceType": "networkConnectivity", | ||
"networkPolicy": true, | ||
"inventory": false, | ||
"capabilities": true, | ||
"extendedPd": false, | ||
"extendedPse": true, | ||
"location": true | ||
}, | ||
"networkPolicies": [] | ||
}, | ||
"vlanNames": {}, | ||
"protocolIdentityInfo": [], | ||
"linkAggregationInterfaceId": 0, | ||
"unknownOrgDefinedTlvs": [ | ||
{ | ||
"ouiStr": "00-90-69", | ||
"subType": 1, | ||
"tlvLines": [ | ||
"57 48 33 36 31 39 31 32 30 32 33 35" | ||
] | ||
} | ||
] | ||
}, | ||
"neighborDiscoveryTime": 1582796476.2745652, | ||
"lastContactTime": 1586942215.243252, | ||
"chassisId": "0443.1003.5413", | ||
"systemName": "some-other-switch", | ||
"systemDescription": "boom boom", | ||
"ttl": 120, | ||
"managementAddresses": [ | ||
{ | ||
"oidString": "0.1.3.6.1.2.1.31.1.1.1.1.17", | ||
"interfaceNumType": "ifIndex", | ||
"interfaceNum": 17, | ||
"address": "10.0.0.2", | ||
"addressType": "ipv4" | ||
} | ||
], | ||
"chassisIdType": "macAddress" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.