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

Modified arista_eos_show_vlan to list Ports issue #908 #909

Conversation

bharath-ravindranath
Copy link

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT

arista_eos_show_vlan.textfsm, arista_eos, show vlan

SUMMARY

The change mostly copied from cisco_ios_show_valn.textfsm template. The output format is very similar on Arista EOS. This Fixes #908

Before:

[{'name': 'default', 'status': 'active', 'vlan_id': '1'},
 {'name': 'Test1', 'status': 'active', 'vlan_id': '10'},
 {'name': 'Test2', 'status': 'suspended', 'vlan_id': '20'},
 {'name': 'VLAN0030', 'status': 'suspended', 'vlan_id': '30'}]

With Fix:

[{'interfaces': ['Et1'], 'name': 'default', 'status': 'active', 'vlan_id': '1'},
 {'interfaces': ['Et1', 'Et2'], 'name': 'Test1', 'status': 'active', 'vlan_id': '10'},
 {'interfaces': [], 'name': 'Test2', 'status': 'suspended', 'vlan_id': '20'},
 {'interfaces': [], 'name': 'VLAN0030', 'status': 'suspended', 'vlan_id': '30'}]

FragmentedPacket and others added 30 commits November 11, 2019 07:42
* Rename all parsed files to use ``.yml`` extension
* Add ``.yamllint`` file
* Add test in ``tox.ini`` file to run yamllint
* Add cli tool to format YAML files using ``ruamel``
* Reformat parsed files to adhere to preferred YAML style
* Add dev install option to package in setup.py
…ocode#563)

* Captured Administrative Mode, added support for unassigned Access VLAN

* Avoid trailing spaces and updated tests

Co-authored-by: jmorello12 <[email protected]>
@jmcgill298
Copy link
Contributor

replaced by #1248

@jmcgill298 jmcgill298 closed this Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arista_eos_show_vlan template does not capture the list of interfaces part of the vlan