-
Notifications
You must be signed in to change notification settings - Fork 48
Adding functions for get_vlans and get_interface_descriptions() #252
Comments
Hi, Regarding
It's not the nicest model but it's similar to how OC looks like and will allow us to reuse code for |
Sounds good to me. Maybe we can even start writing a parser & translator pair directly under |
If we want to do that (which I think it's a great idea) I'd suggest abstracting So what I'd suggest for this then would be to implement |
Curious if what is being proposed here would provide the sort of data I'm looking for myself. I've been looking for ways provide a tool for others that can check switches for a vlan and what ports have it enabled. For instance on Cisco the basics of the "show vlan id xxxx":
Haven't starting using Napalm yet, it's on the list, and if this is the sort of data one could extract efficiently it would be a great excuse to start leveraging Napalm. |
Well, the model is described here: The code is not there yet though. |
#264 integrates napalm-yang into the drivers which means we will only need to implement the parsers/translators and get all the napalm-yang goodies. |
@icmp-echo what platforms would you need for the |
@dbarrosop cisco and juniper, please |
Ok, will implement at least one of them. However, it might not be released for a while while we iron some details with pyangbind and py3 support. |
@icmp-echo could you be more specific? cisco and juniper have at least 10 different ways of configuring vlans depending on platform, phase of the moon and mood of the developer :) It would be great if you could provide platform, operating system and even snippets of valid configuration :) Thanks! |
I implemented this for EOS because I don't know which flavor of IOS/Junos people wanted. You can see the results here: https://github.com/napalm-automation/napalm-yang/blob/develop/test/integration/test_profiles/eos/openconfig-interfaces/config/l2_ports/expected.json Theoretically the |
Hello, I managed to get close to the expected result for IOSDriver with a template here. But I still have to split the PORTS rows in an external script. For exemple: I think this can be done in a new method in the IOSDriver class. What do you think about it? Regards, |
I am not sure what the question is :) In any case, this discussion should be moved to the napalm repo as this one is deprecated. Closing. |
So today there are the following methods in napalm-base
get_arp_table ()
get_mac_address_table()
get_interfaces_ip()
get_interfaces_counters()
get_interfaces()
As a network operations center and as an engineer I heavily rely on basic information of vlans and interface description find the right port or right unit, and could use similar functionality. So my proposal is to add:
get_vlans()
get_interfaces_descriptions()
which is very basic but could impact very very positively.
Thanks
The text was updated successfully, but these errors were encountered: