genieparser
genieparser copied to clipboard
IOSXE - ShowIpInterface - Multicast reserved groups fix
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:

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