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

Add Napalm get_vlans() method #34

Closed
wants to merge 9 commits into from
Closed

Add Napalm get_vlans() method #34

wants to merge 9 commits into from

Conversation

jefvantongerloo
Copy link

Reference issues
None

Fixes
Implements the get_vlans() method based on the official Napalm documentation:

get_vlans()Return structure being spit balled is as follows:
- vlan_id (int)
   - name (text_type)
   - interfaces (list) 

Example output:

{
   10: 
   {
   "name": "default",
   "interfaces": ["GigabitEthernet0/0/1", "GigabitEthernet0/0/2"]
   },
   11: 
   {
   "name": "vlan11",
   "interfaces": []
   }
}

@jefvantongerloo
Copy link
Author

jefvantongerloo commented Jan 20, 2021

get_vlans() method and test getters not present in Napalm version 2.3.1, needs Napalm 3.0+ upgrade compatibility.

Reference issue: iget_vlans() method and test getter not present (Napalm < 3.0) #35
Depends on PR: Make compatible with Napalm 3 #30

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

Successfully merging this pull request may close these issues.

1 participant