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

New parser for 'show vlan brief' on Cisco IOSXE #658

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

barfa1
Copy link

@barfa1 barfa1 commented May 10, 2022

Description

Screenshots:

Screenshot (994)
Screenshot (995)

@barfa1 barfa1 requested a review from a team as a code owner May 10, 2022 10:31
@barfa1 barfa1 requested review from Taarini and LukasMcClelland May 10, 2022 10:31
@sjpatel21 sjpatel21 requested review from omehrabi and removed request for LukasMcClelland May 25, 2022 18:06
Copy link
Contributor

@GerriorL GerriorL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Shubham,
This looks good, but I think there's a better approach you could take in the schema.

'vlan_id': int,
'name': str,
'status': str,
Optional('ports'): str,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Optional('ports'): str,
Optional('ports'): list,

I think this would work better as a list instead of one long string.
If there are no ports, just don't assign anything to the per_vlan_dict['ports'] key, and since it's optional it won't cause an issue.

@@ -0,0 +1,98 @@
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have show_vlan for iosxe please add the parser to that file instead of creating a new one

Copy link
Contributor

@omehrabi omehrabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
thank you for contributing left comment

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.

3 participants