Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EtherChannel info is not consistent across platforms #193

Open
fatman00 opened this issue Nov 24, 2022 · 17 comments
Open

EtherChannel info is not consistent across platforms #193

fatman00 opened this issue Nov 24, 2022 · 17 comments
Assignees

Comments

@fatman00
Copy link

fatman00 commented Nov 24, 2022

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"
  },
 
@Taarini Taarini self-assigned this Nov 28, 2022
@Taarini
Copy link
Contributor

Taarini commented Nov 29, 2022

Hi

Can you please share the device output to debug this issue further along with os and platform used.

@fatman00
Copy link
Author

fatman00 commented Dec 1, 2022

Hi
Yes, what kind of device output do you want?

------------------ show version ------------------

Cisco IOS XE Software, Version 16.12.04
Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.12.4, RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Thu 09-Jul-20 21:49 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2020 by cisco Systems, Inc.
All rights reserved.  Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.  For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMON
BOOTLDR: System Bootstrap, Version 17.1.1[FC2], RELEASE SOFTWARE (P)

XXXXXXXXXXX uptime is 1 year, 49 weeks, 6 days, 10 hours, 38 minutes
Uptime for this control processor is 1 year, 49 weeks, 6 days, 10 hours, 42 minutes
System returned to ROM by PowerOn
System restarted at 00:32:47 CET Thu Dec 17 2020
System image file is "bootflash:packages.conf"
Last reload reason: PowerOn



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
[email protected].


Technology Package License Information: 

------------------------------------------------------------------------------
Technology-package                                     Technology-package
Current                        Type                       Next reboot  
------------------------------------------------------------------------------
XXXXXXXXXXX
         
AIR License Level: XXXXXXXXXXX
Next reload AIR license Level: XXXXXXXXXXX


Smart Licensing Status: XXXXXXXXXXX

cisco C9500-48Y4C (X86) processor with 1867864K/6147K bytes of memory.
Processor board ID XXXXXXXXXXX
2 Virtual Ethernet interfaces
96 TwentyFive Gigabit Ethernet interfaces
8 Hundred Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
16010152K bytes of physical memory.
11161600K bytes of Bootflash at bootflash:.
11161600K bytes of Bootflash at bootflash-2:.
1638400K bytes of Crash Files at crashinfo:.
1638400K bytes of Crash Files at crashinfo-2:.
0K bytes of WebUI ODM Files at webui:.

Base Ethernet MAC Address          : XXXXXXXXXXX
Motherboard Assembly Number        : 4873
Motherboard Serial Number          : XXXXXXXXXXX
Model Revision Number              : V02
Motherboard Revision Number        : 4
Model Number                       : C9500-48Y4C         
System Serial Number               : XXXXXXXXXXX

Switch 02
---------
Base Ethernet MAC Address          : XXXXXXXXXXX
Motherboard Assembly Number        : 4873
Motherboard Serial Number          : XXXXXXXXXXX
Model Revision Number              : V02
Motherboard Revision Number        : 4
Model Number                       : C9500-48Y4C         
System Serial Number               : XXXXXXXXXXX

------------------ show etherchannel summary ------------------


Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator

        M - not in use, minimum links not met
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port

        A - formed by Auto LAG


Number of channel-groups in use: 19
Number of aggregators:           19

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1      Po1(SU)         LACP        Twe1/0/1(P)     Twe2/0/1(P)     
2      Po2(SU)         LACP        Twe1/0/2(P)     Twe2/0/2(P)     
5      Po5(SU)         LACP        Twe1/0/5(P)     Twe2/0/5(P)     
6      Po6(SU)         LACP        Twe1/0/6(P)     Twe2/0/6(P)     
8      Po8(SU)          -          Twe1/0/8(P)     Twe2/0/8(P)     
9      Po9(SU)          -          Twe1/0/9(P)     Twe2/0/9(P)     
10     Po10(SD)         -          Twe1/0/10(D)    Twe2/0/10(D)    
11     Po11(SD)         -          Twe1/0/11(D)    Twe2/0/11(D)    
12     Po12(SD)         -          Twe1/0/12(D)    Twe2/0/12(D)    
36     Po36(SU)        LACP        Twe1/0/36(P)    Twe2/0/36(P)    
38     Po38(SU)        LACP        Twe1/0/38(P)    Twe2/0/38(P)    
39     Po39(SU)        LACP        Twe1/0/39(P)    Twe2/0/39(P)    
40     Po40(SU)         -          Twe1/0/40(P)    Twe2/0/40(P)    
41     Po41(SU)        LACP        Twe1/0/41(P)    Twe2/0/41(P)    
42     Po42(SU)         -          Twe1/0/42(P)    Twe2/0/42(P)    
43     Po43(SU)         -          Twe1/0/43(P)    Twe2/0/43(P)    
44     Po44(SU)        LACP        Twe1/0/44(P)    Twe2/0/44(P)    
46     Po46(SU)        LACP        Twe1/0/46(P)    Twe2/0/46(P)    
47     Po47(SU)        LACP        Twe1/0/47(P)    Twe2/0/47(P)    

#ASR:
------------------ show version ------------------

Cisco IOS XE Software, Version 16.05.01b
Cisco IOS Software [Everest], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.5.1b, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Tue 11-Apr-17 17:00 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2017 by cisco Systems, Inc.
All rights reserved.  Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.  For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMON

XXXXXXXXXXX uptime is 13 weeks, 2 days, 7 minutes
Uptime for this control processor is 13 weeks, 2 days, 9 minutes
System returned to ROM by reload
System restarted at 12:02:35 CEST Tue Aug 30 2022
System image file is "bootflash:asr1000-universalk9.16.05.01b.SPA.bin"
Last reload reason: PowerOn



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
[email protected].


cisco ASR1001-HX (1SR) processor (revision 1SR) with 6835831K/6147K bytes of memory.
Processor board ID XXXXXXXXXXX
Crypto Hardware Module absent
8 Gigabit Ethernet interfaces
8 Ten Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
16777216K bytes of physical memory.
30056447K bytes of eUSB flash at bootflash:.
0K bytes of SATA hard disk at harddisk:.
0K bytes of WebUI ODM Files at webui:.

Configuration register is 0x2102

#show etherchan summ
Flags:  D - down        P/bndl - bundled in port-channel
        I - stand-alone s/susp - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator

        M - not in use, minimum links not met
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port


Number of channel-groups in use: 3
Number of aggregators:           3

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1       Po1(RU)         LACP     Te0/1/1(bndl) Te0/1/2(bndl)
2       Po2(RU)         LACP     Te0/1/0(bndl)
4       Po4(RU)         LACP     Te0/1/4(bndl) Te0/1/5(bndl)

RU - L3 port-channel UP State
SU - L2 port-channel UP state
P/bndl -  Bundled
S/susp  - Suspended


@fatman00
Copy link
Author

fatman00 commented Dec 1, 2022

One of the other issues I have is that the type is different on them. On the Cat9k the type is EtherChannel and on the ASR it is GEChannel or 10GChannel. But I guess that is the devices information about the hardware.

@Taarini
Copy link
Contributor

Taarini commented Dec 5, 2022

In the device output which you had shared, I don't see the GEChannel or 10GChannel in the output.

Please share the device output of the parser command which you are trying. So that I can verify the same and share how the type is being processed.

Or you can search for the command which you are trying in the genieparser repository, and try adding print to see how it is done.

@fatman00
Copy link
Author

fatman00 commented Dec 6, 2022

I am not sure what you mean about the output from the parser command. Could you help me understand that?
The hardware type on the ASR is actually 10GEChannel and GEChannel.

#show inter po1
Port-channel1 is up, line protocol is up 
  Hardware is 10GEChannel, address is xxxx.xxxx.xxxx (bia xxxx.xxxx.xxxx)
  Description: EPL Circuits
  MTU 2000 bytes, BW 20000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 10/255, rxload 9/255
  Encapsulation 802.1Q Virtual LAN, Vlan ID  1., loopback not set
  Keepalive set (10 sec)
  ARP type: ARPA, ARP Timeout 04:00:00
    No. of active members in this channel: 2 
        Member 0 : TenGigabitEthernet0/1/1 , Full-duplex, 10000Mb/s
        Member 1 : TenGigabitEthernet0/1/2 , Full-duplex, 10000Mb/s
    No. of PF_JUMBO supported members in this channel : 2
  Last input 00:00:00, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/750/0/141 (size/max/drops/flushes); Total output drops: 903627409
  Queueing strategy: Class-based queueing
  Output queue: 0/80 (size/max)
  30 second input rate 663664000 bits/sec, 95239 packets/sec
  30 second output rate 807797000 bits/sec, 117188 packets/sec
     414121989315 packets input, 362953398803693 bytes, 0 no buffer
     Received 2646202 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles 
     2 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 142508288 multicast, 0 pause input
     429670458212 packets output, 340766432129672 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     12005295 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out

@fatman00
Copy link
Author

Just to be clear, my main issue is not that the hardware type is different on the platforms as it shows the actual hardware type as reported by the network device.
My main issue is that the member interfaces does not reference the LAG interface on some implementations.

@Taarini
Copy link
Contributor

Taarini commented Dec 16, 2022

Can you elaborate on what you mean by member interfaces does not reference the LAG interface on some implementations

@fatman00
Copy link
Author

Hi @Taarini,
Yes, if you look at the very first example of the output i gave, one device did not include any LAG information in the memberport:

"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
  },

Where as on the other device type it did:

"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"
  },

@Taarini
Copy link
Contributor

Taarini commented Dec 19, 2022

Okay. I think it could be due to some regex related issue.

Can you share the device output of show interfaces so that i can verify what is missing to be parsed

@fatman00
Copy link
Author

Hi @Taarini
This is the show interface for a Portchannel and the member interfaces on both the ASR and the CAT9K

#ASR

ASR01#show inter po1
Port-channel1 is up, line protocol is up 
  Hardware is 10GEChannel, address is 00a3.xxxx.xxxx (bia 00a3.xxxx.xxxx)
  Description: ******************************************
  MTU 2000 bytes, BW 20000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 7/255, rxload 3/255
  Encapsulation 802.1Q Virtual LAN, Vlan ID  1., loopback not set
  Keepalive set (10 sec)
  ARP type: ARPA, ARP Timeout 04:00:00
    No. of active members in this channel: 2 
        Member 0 : TenGigabitEthernet0/1/1 , Full-duplex, 10000Mb/s
        Member 1 : TenGigabitEthernet0/1/2 , Full-duplex, 10000Mb/s
    No. of PF_JUMBO supported members in this channel : 2
  Last input 00:00:00, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/750/0/143 (size/max/drops/flushes); Total output drops: 1960046628
  Queueing strategy: Class-based queueing
  Output queue: 0/80 (size/max)
  30 second input rate 287982000 bits/sec, 59360 packets/sec
  30 second output rate 622439000 bits/sec, 89991 packets/sec
     471084499785 packets input, 411350834433563 bytes, 0 no buffer
     Received 2900541 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles 
     6 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 162988114 multicast, 0 pause input
     491930313656 packets output, 392759208954891 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     13597351 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
ASR01#show inter Te0/1/1
TenGigabitEthernet0/1/1 is up, line protocol is up 
  Hardware is BUILT-IN-8X10G/1G, address is 00a3.xxxx.xxxx (bia 00a3.xxxx.xxxx)
  Description: ********************************************
  MTU 2000 bytes, BW 10000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 8/255, rxload 5/255
  Encapsulation ARPA, loopback not set
  Keepalive not supported 
  Full Duplex, 10000Mbps, link type is force-up, media type is 10GBase-LR
  output flow-control is on, input flow-control is on
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:19, output 00:00:05, output hang never
  Last clearing of "show interface" counters 15w6d
  Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 196715000 bits/sec, 38886 packets/sec
  5 minute output rate 324134000 bits/sec, 45206 packets/sec
     302802225095 packets input, 263131802788810 bytes, 0 no buffer
     Received 2287350 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles 
     1 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 57480110 multicast, 0 pause input
     299344602747 packets output, 221796444440754 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
ASR01#show inter Te0/1/2
TenGigabitEthernet0/1/2 is up, line protocol is up 
  Hardware is BUILT-IN-8X10G/1G, address is 00a3.xxxx.xxxx (bia 00a3.xxxx.xxxx)
  Description: *************************************************
  MTU 2000 bytes, BW 10000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 7/255, rxload 2/255
  Encapsulation ARPA, loopback not set
  Keepalive not supported 
  Full Duplex, 10000Mbps, link type is force-up, media type is 10GBase-LR
  output flow-control is on, input flow-control is on
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:27, output 00:00:04, output hang never
  Last clearing of "show interface" counters 15w6d
  Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 90816000 bits/sec, 20383 packets/sec
  5 minute output rate 295096000 bits/sec, 44372 packets/sec
     168725559079 packets input, 148566918153423 bytes, 0 no buffer
     Received 613195 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles 
     5 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 105508280 multicast, 0 pause input
     192588267522 packets output, 163323613457391 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out

# Cat9k

Cat9k#show inter po1      
Port-channel1 is up, line protocol is up (connected) 
  Hardware is EtherChannel, address is e41f.xxxx.xxxx (bia e41f.xxxx.xxxx)
  Description: *************************************
  MTU 1500 bytes, BW 2000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 28/255, rxload 9/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 1000Mb/s, link type is auto, media type is N/A
  input flow-control is on, output flow-control is unsupported 
  Members in this channel: Twe1/0/1 Twe2/0/1 
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 1y16w, output 00:00:01, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 112101296
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 74151000 bits/sec, 11318 packets/sec
  5 minute output rate 225004000 bits/sec, 57490 packets/sec
     333896722812 packets input, 268555918708498 bytes, 0 no buffer
     Received 1180030433 broadcasts (923783109 multicasts)
     0 runts, 160 giants, 0 throttles 
     160 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 923783109 multicast, 0 pause input
     0 input packets with dribble condition detected
     1047975914845 packets output, 547707638808226 bytes, 0 underruns
     Output 2360331052 broadcasts (0 multicasts)
     0 output errors, 0 collisions, 1 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
Cat9k#show interfaces Twe1/0/1
TwentyFiveGigE1/0/1 is up, line protocol is up (connected) 
  Hardware is Twenty Five Gigabit Ethernet, address is e41f.xxxx.xxxx (bia e41f.xxxx.xxxx)
  Description: ******************************************* 
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 48/255, rxload 9/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 1000Mb/s, link type is auto, media type is 10/100/1000BaseTX SFP
  input flow-control is on, output flow-control is off
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:17, output 00:00:04, output hang never
  Last clearing of "show interface" counters 2y0w
  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 55243688
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 36845000 bits/sec, 5836 packets/sec
  5 minute output rate 189595000 bits/sec, 52572 packets/sec
     169131157888 packets input, 135990100118203 bytes, 0 no buffer
     Received 664873832 broadcasts (525170180 multicasts)
     0 runts, 73 giants, 0 throttles 
     73 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 525170180 multicast, 0 pause input
     0 input packets with dribble condition detected
     904347851170 packets output, 427303246983965 bytes, 0 underruns
     Output 1184241650 broadcasts (0 multicasts)
     0 output errors, 0 collisions, 2 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output
     0 output buffer failures, 0 output buffers swapped out
Cat9k#show interfaces Twe2/0/1
TwentyFiveGigE2/0/1 is up, line protocol is up (connected) 
  Hardware is Twenty Five Gigabit Ethernet, address is e41f.xxxx.xxxx (bia e41f.xxxx.xxxx)
  Description: *******************************************
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 9/255, rxload 9/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 1000Mb/s, link type is auto, media type is 10/100/1000BaseTX SFP
  input flow-control is on, output flow-control is off
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:20, output 00:00:05, output hang never
  Last clearing of "show interface" counters 2y0w
  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 56857796
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 37211000 bits/sec, 5471 packets/sec
  5 minute output rate 35439000 bits/sec, 4944 packets/sec
     164765706927 packets input, 132565939378422 bytes, 0 no buffer
     Received 515157376 broadcasts (398613593 multicasts)
     0 runts, 87 giants, 0 throttles 
     87 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 398613593 multicast, 0 pause input
     0 input packets with dribble condition detected
     143628845124 packets output, 120404789929176 bytes, 0 underruns
     Output 1176090939 broadcasts (0 multicasts)
     0 output errors, 0 collisions, 2 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 pause output

@Taarini
Copy link
Contributor

Taarini commented Dec 20, 2022

There isn't a information on other interface like below

ASR01#show inter po1
  ARP type: ARPA, ARP Timeout 04:00:00
    No. of active members in this channel: 2 
        Member 0 : TenGigabitEthernet0/1/1 , Full-duplex, 10000Mb/s
        Member 1 : TenGigabitEthernet0/1/2 , Full-duplex, 10000Mb/s
    No. of PF_JUMBO supported members in this channel : 2

That is the reason in some of the other interface output, you see something like below,
'TenGigabitEthernet0/1/1': {'port_channel': {'port_channel_member': False}

@Taarini
Copy link
Contributor

Taarini commented Dec 21, 2022

Hi

Did you understand the output info which I had shared you above

@fatman00
Copy link
Author

So my issue is that the parent interface(PortChannel) contains information about the child interfaces in the configuration. This is true for both the Cat9k and ASR.

But the child interfaces only contains information about the parent interface on the Cat9k but not the ASR.
See my first post of the pyats information on the child interfaces.

Cat9k#show inter po1      
Port-channel1 is up, line protocol is up (connected) 
  Members in this channel: Twe1/0/1 Twe2/0/1 

ASR01#show inter po1
Port-channel1 is up, line protocol is up 
    No. of active members in this channel: 2 
        Member 0 : TenGigabitEthernet0/1/1 , Full-duplex, 10000Mb/s
        Member 1 : TenGigabitEthernet0/1/2 , Full-duplex, 10000Mb/s
    No. of PF_JUMBO supported members in this channel : 2

@Taarini
Copy link
Contributor

Taarini commented Jan 9, 2023

Hi

Sorry for the delay in responding,

Right now we don't have support specific to platform ASR and CAT9K

Since genieparser is community driven, request you to add support for the command in both the platform.

Below is the link to the steps in creating a new parser, https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/writeparser/writeparser.html

If you need any assistance in creating a PR for the above, I'm very happy to assist you through the process of approval

@Taarini
Copy link
Contributor

Taarini commented Jan 10, 2023

Hi

May I know whether you will be contributing for the above

@fatman00
Copy link
Author

Hi @Taarini
I am afraid I do not have the skillset to contribute with a parser.
I will accept that ASR's are not supported.
Thank you for the information.

@Taarini
Copy link
Contributor

Taarini commented Jan 11, 2023

Hi @fatman00,

No issues we will add it in our backlog based on priority and let you know once we support them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants