-
Notifications
You must be signed in to change notification settings - Fork 735
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 template cisco_ios_show_snmp_user.template #429
New template cisco_ios_show_snmp_user.template #429
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.
@jifox Thanks for getting this submitted! We're lacking a few things that are touched on the README for contributing. Do you mind modifying the index file and put the template in the correct order and then add a .raw and .parsed to the test directory?
The directory would be tests/cisco_ios/show_snmp_user/ and they would be named cisco_ios_show_snmp_user1.raw. You can just put the .raw in there and then run the helper playbook in ./helpers and it'll generate the .parsed file for you. It does require Ansible and ntc-ansible.
If you're on our community Slack, you can join the #networktocode channel and ask for help or PM me directly for help.
@FragmentedPacket |
Value Required USER_NAME (\w+) | ||
Value ENGINE_ID (\w+) | ||
Value STORAGE_TYPE (\w+) | ||
Value STORAGE_TYPE_ACTIVE (\w+) |
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.
I think we should change the STORAGE_TYPE_ACTIVE
to ACCESS_LIST
to capture d+
as that appears from the Cisco docs as to what it is referring to:
And then change L12 to:
^storage-type:\s${STORAGE_TYPE}\s+active$$
And add the following line right above:
^storage-type:\s${STORAGE_TYPE}\s+active\s+access-list:\s+${ACCESS_LIST}$$
@FragmentedPacket |
New template: cisco_ios_show_snmp_user
ISSUE TYPE
COMPONENT
cisco_ios_show_snmp_user.template
SUMMARY
see issue #390