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

Support for deleted interfaces #184

Open
fatman00 opened this issue Oct 6, 2022 · 3 comments
Open

Support for deleted interfaces #184

fatman00 opened this issue Oct 6, 2022 · 3 comments
Assignees

Comments

@fatman00
Copy link

fatman00 commented Oct 6, 2022

When I am using the "show interfaces" parser the resulting output includes delete subinterfaces but does not show the interfaces as deleted. Gig 0/0/0.2 is the example here where i cannot from the python code see that the interface is in fact deleted on the device.

interfaces = dev.parse('show interfaces')
print(interfaces)

{
   "GigabitEthernet0/0/0":{
      "port_channel":{
         "port_channel_member":false
      },
      "enabled":false,
      "line_protocol":"down",
      "oper_status":"down",
      "type":"C1111-2x1GE",
      "mac_address":"00b7.71e7.0200",
      "phys_address":"00b7.71e7.0200",
      "description":"Not in use",
      "delay":10,
      "mtu":1500,
      "bandwidth":1000000,
      "reliability":"255/255",
      "txload":"1/255",
      "rxload":"1/255",
      "encapsulations":{
         "encapsulation":"arpa"
      },
      "duplex_mode":"full",
      "port_speed":"1000mbps",
      "link_type":"auto",
      "auto_negotiate":true,
      "media_type":"Auto Select",
      "flow_control":{
         "receive":true,
         "send":true
      },
      "arp_type":"arpa",
      "arp_timeout":"04:00:00",
      "last_input":"never",
      "last_output":"never",
      "output_hang":"never",
      "queues":{
         "input_queue_size":0,
         "input_queue_max":375,
         "input_queue_drops":0,
         "input_queue_flushes":0,
         "total_output_drop":0,
         "queue_strategy":"fifo",
         "output_queue_size":0,
         "output_queue_max":40
      },
      "counters":{
         "rate":{
            "load_interval":300,
            "in_rate":0,
            "in_rate_pkts":0,
            "out_rate":0,
            "out_rate_pkts":0
         },
         "last_clear":"never",
         "in_pkts":0,
         "in_octets":0,
         "in_no_buffer":0,
         "in_multicast_pkts":0,
         "in_broadcast_pkts":0,
         "in_runts":0,
         "in_giants":0,
         "in_throttles":0,
         "in_errors":0,
         "in_crc_errors":0,
         "in_frame":0,
         "in_overrun":0,
         "in_ignored":0,
         "in_watchdog":0,
         "in_mac_pause_frames":0,
         "out_pkts":0,
         "out_octets":0,
         "out_underruns":0,
         "out_broadcast_pkts":0,
         "out_multicast_pkts":0,
         "out_errors":0,
         "out_interface_resets":1,
         "out_collision":0,
         "out_unknown_protocl_drops":0,
         "out_babble":0,
         "out_late_collision":0,
         "out_deferred":0,
         "out_lost_carrier":0,
         "out_no_carrier":0,
         "out_mac_pause_frames":0,
         "out_buffer_failure":0,
         "out_buffers_swapped":0
      }
   },
   "GigabitEthernet0/0/0.2":{
      "port_channel":{
         "port_channel_member":false
      },
      "enabled":false,
      "line_protocol":"down",
      "oper_status":"down",
      "type":"C1111-2x1GE",
      "mac_address":"00b7.71e7.0200",
      "phys_address":"00b7.71e7.0200",
      "delay":10,
      "mtu":1500,
      "bandwidth":1000000,
      "reliability":"255/255",
      "txload":"1/255",
      "rxload":"1/255",
      "encapsulations":{
         "encapsulation":"arpa"
      },
      "arp_type":"arpa",
      "arp_timeout":"04:00:00"
   },

Show interface on the device:

GigabitEthernet0/0/0.2 is deleted, line protocol is down 
  Hardware is C1111-2x1GE, address is 00b7.71e7.0200 (bia 00b7.71e7.0200)
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA
  ARP type: ARPA, ARP Timeout 04:00:00
  Keepalive not supported 
  Last clearing of "show interface" counters never
GigabitEthernet0/0/1 is up, line protocol is up 
  Hardware is C1111-2x1GE, address is 00b7.71e7.0201 (bia 00b7.71e7.0201)
  Description: Outside interface to Core-PL-R1
  Internet address is 10.0.50.5/29
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive not supported 
  Full Duplex, 1000Mbps, link type is auto, media type is RJ45
  output flow-control is off, input flow-control is off
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:00, output 00:00:00, output hang never
  Last clearing of "show interface" counters never
  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 3000 bits/sec, 6 packets/sec
  5 minute output rate 58000 bits/sec, 8 packets/sec
     624993764 packets input, 785742018801 bytes, 0 no buffer
     Received 3 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 0 multicast, 0 pause input
     297833811 packets output, 94269500291 bytes, 0 underruns
     Output 2 broadcasts (0 IP 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
@Taarini Taarini self-assigned this Oct 7, 2022
@Taarini
Copy link
Contributor

Taarini commented Oct 7, 2022

Hi

Thanks for reporting.

Can you please share the os and platform used for the above show command

@fatman00
Copy link
Author

fatman00 commented Oct 11, 2022

This is a C1111 router.

#show ver
Cisco IOS XE Software, Version 17.06.03a
Cisco IOS Software [Bengaluru], ISR Software (ARMV8EL_LINUX_IOSD-UNIVERSALK9-M), Version 17.6.3a, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2022 by Cisco Systems, Inc.
Compiled Fri 08-Apr-22 12:42 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2022 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: 17.5(1r)

R1 uptime is 14 weeks, 5 days, 22 hours, 23 minutes
Uptime for this control processor is 14 weeks, 5 days, 22 hours, 24 minutes
System returned to ROM by Image Install  at 09:54:46 CEST Wed Jun 29 2022
System restarted at 10:13:11 CEST Wed Jun 29 2022
System image file is "bootflash:packages.conf"
Last reload reason: Image Install 



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
export@cisco.com.


          
Suite License Information for Module:'esg' 

--------------------------------------------------------------------------------
Suite                 Suite Current         Type           Suite Next reboot     
--------------------------------------------------------------------------------
FoundationSuiteK9     None                  Smart License  None                  
securityk9
appxk9


Technology Package License Information: 

-----------------------------------------------------------------
Technology    Technology-package           Technology-package
              Current       Type           Next reboot  
------------------------------------------------------------------
appxk9           appxk9           Smart License    appxk9
uck9             None             Smart License    None
securityk9       securityk9       Smart License    securityk9
ipbase           ipbasek9         Smart License    ipbasek9
          
The current throughput level is unthrottled 


Smart Licensing Status: Registration Not Applicable/Not Applicable

cisco C1111-8P (1RU) processor with 1398054K/6147K bytes of memory.
Processor board ID ***************
Router operating mode: Autonomous
4 Virtual Ethernet interfaces
10 Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
4194304K bytes of physical memory.
2863103K bytes of flash memory at bootflash:.

Configuration register is 0x2102

@Taarini
Copy link
Contributor

Taarini commented Oct 13, 2022

A new key will be added to check the interface status. Thank you, this will be fixed in the next release 22.10.

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