-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
When looking at the EtherChannel info on two different platforms Cat9500 and ASR1001 the naming and information in the data is not consistent.
As shown in the snippet below on the CAT9K The PortChannel consists of the 2 member ports, and the member ports includes information about the Po.
On the ASR the PortChannel has information about the member ports, but the member ports does not include Po information.
data = dev.learn('interface')
interfaces = data.to_dict()['info']
print(interfaces) # ASR:
"Port-channel4": {
"description": "Etherchannel to SW10",
"type": "GEChannel",
"oper_status": "up",
"phys_address": "00a3.8eb7.****",
"mtu": 1508,
"enabled": true,
"bandwidth": 20000000,
"mac_address": "00a3.8eb7.****",
"port_channel": {
"port_channel_member": true,
"active_members": 2,
"port_channel_member_intfs": [
"TenGigabitEthernet0/1/4",
"TenGigabitEthernet0/1/5"
],
"num_of_pf_jumbo_supported_members": 2
},
"TenGigabitEthernet0/1/4": {
"description": "Link 1 to SW10",
"type": "BUILT-IN-8X10G/1G",
"oper_status": "up",
"phys_address": "00a3.8eb7.****",
"port_speed": "10000mbps",
"mtu": 1508,
"enabled": true,
"bandwidth": 10000000,
"flow_control": {
"receive": true,
"send": true
},
"mac_address": "00a3.8eb7.****",
"auto_negotiate": false,
"port_channel": {
"port_channel_member": false
},
-----------------------------------------------------------------------------------------
print(interfaces) # CAT9K:
"Port-channel1": {
"description": "Link to SW11",
"type": "EtherChannel",
"oper_status": "up",
"phys_address": "e41f.7beb.****",
"port_speed": "1000mb/s",
"mtu": 1500,
"enabled": true,
"bandwidth": 2000000,
"flow_control": {
"receive": true,
"send": false
},
"mac_address": "e41f.7beb.****",
"auto_negotiate": true,
"port_channel": {
"port_channel_member": true,
"port_channel_member_intfs": [
"TwentyFiveGigE1/0/1",
"TwentyFiveGigE2/0/1"
]
},
"TwentyFiveGigE1/0/1": {
"description": "Link to SW11",
"type": "Twenty Five Gigabit Ethernet",
"oper_status": "up",
"phys_address": "e41f.7beb.****",
"port_speed": "1000mb/s",
"mtu": 1500,
"enabled": true,
"bandwidth": 1000000,
"flow_control": {
"receive": true,
"send": false
},
"mac_address": "e41f.7beb.****",
"auto_negotiate": true,
"port_channel": {
"port_channel_member": true,
"port_channel_int": "Port-channel1"
},
Metadata
Metadata
Assignees
Labels
No labels