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

Update IOS XE management_interface implementation to support proposed… #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

palmersample
Copy link

… IPv6 parser for interface determination

Problem statement:
When connecting to a device that uses an IPv6-enabled management interface, the current implementation of management_interface.py uses the ShowIpInterfaceBriefPipeIp parser, which will return nothing for an IPv6 address. This results in Genie printing the message "Device '<device_name>' does not have a management interface configured which could be found"

Proposed solution:
In conjunction with Genie parser PR #751 (CiscoTestAutomation/genieparser#751), this change attempts to import the ShowIpv6InterfaceBriefPipeIp parser which should be used if the address in the testbed is an IPv6 address.

If the module does not exist, catch the ModuleImportError exception and pass in the parser selection, leaving the existing functionality intact.

Note:
The try...except statements can be removed after approval of parser PR #751 - this is a safeguard until the next release.

Screenshot of existing behavior and connection result:
genie_current_behavior

Screenshot of new behavior when ShowIpv6InterfaceBriefPipeIp is not available:
genie_new_behavior_no_parser

Screenshot of new behavior with ShowIpv6InterfaceBriefPipeIp parser installed:
genie_new_behavior_with_parser

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.

1 participant