-
Notifications
You must be signed in to change notification settings - Fork 399
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 @@ | |||
""" |
There was a problem hiding this comment.
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
There was a problem hiding this 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
Description
Screenshots: