genieparser icon indicating copy to clipboard operation
genieparser copied to clipboard

Support for BGP confederations in AS_PATH for IOS-XR

Open vkoulermos opened this issue 3 years ago • 2 comments

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:

ShowBgpNeighRoutes ShowBgpAdvertised Show bgp all all

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.

vkoulermos avatar Feb 19 '22 15:02 vkoulermos

Thanks for contributing!

LukasMcClelland avatar Mar 11 '22 21:03 LukasMcClelland

Can you merge this please?

vkoulermos avatar Oct 12 '23 18:10 vkoulermos