Skip to content
New issue

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

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

Already on GitHub? # to your account

Management interface no listed by get_facts/get_interfaces/get_interfaces_ip methods #7

Closed
lboue opened this issue Aug 14, 2018 · 2 comments

Comments

@lboue
Copy link
Contributor

lboue commented Aug 14, 2018

Hello,

The last 'napalm-dellos10' version doesn't report some interfaces type in the interface list table because the 'show interface status' doesn't report it.
This is the case for:

  • mgmt
  • port-channel
OS10# show interface 
  ethernet      Ethernet interface number
  loopback      Loopback interface number
  mgmt          Management interface number
  null          Null interface number
  phy-eth       Ethernet IEEE 802.3
  port-channel  Port-channel number
  status        Show interface status
  vlan          VLAN ID number
OS10# show interface | grep "line protocol"
Ethernet 1/1/1 is up, line protocol is up
Ethernet 1/1/2 is up, line protocol is up
...
Ethernet 1/1/50 is down, line protocol is down
Ethernet 1/1/51 is down, line protocol is down
Ethernet 1/1/52 is down, line protocol is down
Ethernet 1/1/53 is up, line protocol is up
Ethernet 1/1/54 is up, line protocol is up
Management 1/1/1 is up, line protocol is up
Vlan 1 is up, line protocol is down
Port-channel 1 is up, line protocol is up
Port-channel 2 is up, line protocol is up
Port-channel 3 is up, line protocol is up
Port-channel 4 is up, line protocol is up
Port-channel 5 is up, line protocol is up
Port-channel 46 is up, line protocol is down
Port-channel 47 is up, line protocol is down
Port-channel 48 is up, line protocol is down
NULL is up, line protocol is up

This is because of the following command in the code:
output = self._send_command('show interface status | display-xml')

So if I change the command to test if againt the management interface, it is reported by the
get_interfaces NAPALM method:
output = self._send_command('show interface mgmt | display-xml')

Result:

$ python napalm-dellos10-get_interfaces.py
collecting from device 10.0.0.1
{   u'mgmt1/1/1': {   'description': u'',
                      'is_enabled': True,
                      'is_up': True,
                      'last_flapped': -1.0,
                      'mac_address': u'N/A',
                      'speed': -1}} 

Could you add a second loop in the following methods?

  • get_facts
  • get_interfaces
  • get_interfaces_ip

Regards,
Ludovic

@skg-net
Copy link
Collaborator

skg-net commented Sep 5, 2018

#15
@lboue please verify.

@skg-net skg-net closed this as completed Sep 5, 2018
@lboue
Copy link
Contributor Author

lboue commented Sep 6, 2018

Thanks, I will test 1.0.6 version ASAP.

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

No branches or pull requests

2 participants