genieparser
genieparser copied to clipboard
Support for BGP confederations in AS_PATH for IOS-XR
Description
Added parenthesis within regexes in which the code is trying to parse AS_PATH. Changes were performed in iosxr/show_bgp.py for classes ShowBgpInstanceNeighborsReceivedRoutes, ShowBgpInstanceNeighborsAdvertisedRoutes and ShowBgpInstanceAllAll.
Also fixed show ShowBgpInstanceAllAll not matching IPv6 prefixes with p16 and as a result their paths/nexthops were added as indexes to the previous prefix of p16_1.
Motivation and Context
To parse BGP confederation paths. I wanted to use the learn bgp feature for an upcoming migration from XE to XR but most of the table was missing.
Impact (If any)
Screenshots:
Checklist:
- [x] I have updated the changelog.
- [ ] 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.
Thanks for contributing!
Can you merge this please?