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

Issue with VTP status parser? #25

Closed
ledazzler opened this issue Jul 25, 2019 · 4 comments
Closed

Issue with VTP status parser? #25

ledazzler opened this issue Jul 25, 2019 · 4 comments

Comments

@ledazzler
Copy link

Hi,

I think there is an issue with the VTP parser.

I'm running a test script, connected to a single IOS switch. I can successfully connect to the device, and parse 'show version', 'show interface' and 'show vlan'. However, the parser for 'show vtp staus' throws an error:

a.parse("show vtp status")
[2019-07-25 11:30:58,310] +++ <>: executing command 'show vtp status' +++
show vtp status
VTP Version : running VTP1 (VTP2 capable)
Configuration Revision : 0
Maximum VLANs supported locally : 1005
Number of existing VLANs : 131
VTP Operating Mode : Transparent
VTP Domain Name : <>
VTP Pruning Mode : Enabled
VTP V2 Mode : Disabled
VTP Traps Generation : Enabled
MD5 digest : 0x55 0xC8 0xE5 0x71 0x48 0x6A 0xB7 0x97
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
<>#
Traceback (most recent call last):
File "", line 1, in
File "src/genie/conf/base/device.py", line 498, in genie.conf.base.device.Device.parse
File "src/genie/metaparser/_metaparser.py", line 271, in genie.metaparser._metaparser.MetaParser.parse
File "/home/ubuntu/environments/stpaul/lib/python3.5/site-packages/genie/libs/parser/iosxe/show_vtp.py", line 204, in cli
ret_dict['vtp']['configuration_revision'] = int(m.groupdict()['val'])
KeyError: 'vtp'

@jeaubin
Copy link
Contributor

jeaubin commented Jul 25, 2019

Thanks for reporting it, we will look into it.

@jeaubin
Copy link
Contributor

jeaubin commented Jul 31, 2019

Hi,

This has been fixed and released.

pip install genie.libs.parser --upgrade

Let us know how it goes

Thanks,

@jeaubin
Copy link
Contributor

jeaubin commented Aug 8, 2019

Can we close this issue? Can you confirm it is now working?

@jeaubin
Copy link
Contributor

jeaubin commented Aug 12, 2019

Closing as it's been fixed - but not confirmation. If any new issue - please comment/raise new issue.

@jeaubin jeaubin closed this as completed Aug 12, 2019
ThomasJRyan pushed a commit that referenced this issue Sep 29, 2020
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

No branches or pull requests

2 participants