genieparser icon indicating copy to clipboard operation
genieparser copied to clipboard

IOSXE - ShowIpInterface - Multicast reserved groups fix

Open davidpryor opened this issue 3 years ago • 0 comments

Description

Modified ShowIpInterface * Fixed bug where first line of the command is the output and the hostname contains an IP. This would cause the multicast reserved groups section to fail due to uninitialized variables. This scenario is hit when a collector does not remove the command prompt and genie is used to parse. * Improved Multicast reserved groups parsing when the IPs span multiple lines * Added test for above scenarios

Motivation and Context

Unable to use genie to parse show ip interface when hostname contains an IP

Impact (If any)

No impact to existing code. Impact to our team is we can remove our patch for ShowIpInterface and utilize the standard parser from this package

Screenshots:

Screen Shot 2022-09-30 at 12 45 08 PM

Checklist:

  • [x] I have updated the changelog.
  • [x] I have updated the documentation (If applicable).
  • [x] I have added tests to cover my changes (If applicable).
  • [x] All new and existing tests passed.
  • [x] All new code passed compilation.

Edit: Uploaded incorrect screenshot for test passing

davidpryor avatar Sep 29 '22 19:09 davidpryor