diff --git a/changelog/undistributed/changelog_showbgpneighbors b/changelog/undistributed/changelog_showbgpneighbors new file mode 100644 index 0000000000..96fa24aaaf --- /dev/null +++ b/changelog/undistributed/changelog_showbgpneighbors @@ -0,0 +1,7 @@ +-------------------------------------------------------------------------------- + Update +-------------------------------------------------------------------------------- +* IOSXE + * Modified ShowBgpNeighborsReceivedRoutesSuperParser() parser + * Updated regex to make the CIDR notation optional + diff --git a/src/genie/libs/parser/iosxe/show_bgp.py b/src/genie/libs/parser/iosxe/show_bgp.py index e239937d4d..23badb0ab1 100755 --- a/src/genie/libs/parser/iosxe/show_bgp.py +++ b/src/genie/libs/parser/iosxe/show_bgp.py @@ -5431,11 +5431,11 @@ def cli(self, neighbor, address_family='', output=None): p3_2 = re.compile(r'^\s*(?P(s|x|S|d|h|\*|\>|\s)+)' '(?P(i|e|c|l|a|r|I))?(\s)?' '(?P(([0-9]+[\.][0-9]+[\.][0-9]+' - '[\.][0-9]+[\/][0-9]+)|([a-zA-Z0-9]+[\:]' + '[\.][0-9]+(?:[\/][0-9]+)?)|([a-zA-Z0-9]+[\:]' '[a-zA-Z0-9]+[\:][a-zA-Z0-9]+[\:]' '[a-zA-Z0-9]+[\:][\:][\/][0-9]+)|' '([a-zA-Z0-9]+[\:][a-zA-Z0-9]+[\:]' - '[a-zA-Z0-9]+[\:][\:][\/][0-9]+)))' + '[a-zA-Z0-9]+[\:][\:](?:[\/][0-9]+)?)))' ' +(?P[a-zA-Z0-9\.\:]+)' ' +(?P[a-zA-Z0-9\s\(\)\{\}]+)' ' +(?P(i|e|\?|\&|\|))$')