cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1860
Views
0
Helpful
6
Replies

XR 5.3.1 group regexp syntax

Hi,

 

in XR 4.3.2 I used to have :

group mygroup
 router bgp '.*'
  neighbor '.*'
  !
 !
end-group

 

to match all neighbors (IPv4 + IPv6)

but I can't make that work with XR 5.3.1 which seems to check the regexp on "neighbor" very hard:

myrtr(config-GRP-bgp)# neighbor '.*'
                                                ^
% Invalid input detected at '^' marker.

the CLI suggests a regexp for IPv4 neighbors, which is accepted :

myrtr(config-GRP-bgp)#neighbor ?
  A.B.C.D or X:X::X  'RegExp': Neighbor address with strict dot/colon match. Eg. '[0-9]*\..*\..*\..*'

router bgp '.*'
  neighbor '[0-9]*\..*\..*\..*'
  !
 !

but it does not propose an IPv6 one and all I tried were rejected ;)

any idea to match IPv6 neighbors ?

 

thanks

Mik

 

 

1 Accepted Solution

Accepted Solutions

Hi Mik,

the parser and flexcli team (thanks Sonia) responded to me that you could try this?

group BGPV6
 router bgp '.*'
  neighbor '::'
   address-family ipv6 unicast
   !
  !
 !
end-group

I haven't given this a twirl myself, so i dunno if that is gonna work :)

xander

View solution in original post

6 Replies 6

xthuijs
Cisco Employee
Cisco Employee

Mik, cant get it to work either, have set this question out to our flex-cli dev team to have a look along.

one of us will report back.

xander

same issue with XR 5.3.2 :)

no news from them yet ?

 

cheers

Mik

Hi Mik,

the parser and flexcli team (thanks Sonia) responded to me that you could try this?

group BGPV6
 router bgp '.*'
  neighbor '::'
   address-family ipv6 unicast
   !
  !
 !
end-group

I haven't given this a twirl myself, so i dunno if that is gonna work :)

xander

RP/0/RP0/CPU0:rtr(config)#group BGPV6
RP/0/RP0/CPU0:rtr(config-GRP)# router bgp '.*'
RP/0/RP0/CPU0:rtr(config-GRP-bgp)#  neighbor '::'
RP/0/RP0/CPU0:rtr(config-GRP-bgp-nbr)#   address-family ipv6 unicast
RP/0/RP0/CPU0:rtr(config-GRP-bgp-nbr-af)#   !
RP/0/RP0/CPU0:rtr(config-GRP-bgp-nbr-af)#  !
RP/0/RP0/CPU0:rtr(config-GRP-bgp-nbr-af)# !
RP/0/RP0/CPU0:rtr(config-GRP-bgp-nbr-af)#end-group
RP/0/RP0/CPU0:rtr(config)#commit
Fri Sep 11 09:14:15.770 UTC
RP/0/RP0/CPU0:Sep 11 09:14:16.154 : config[65900]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'xxx'. Use 'show configuration commit changes 1000000314' to view the changes.

that was accepted by the cli at least :)

this really needs to be somewhere in the doc or the cli ;p

 

thanks Xander

Mik

thanks for the confirmation mik, I'll have it documented, besides this forum:)

xander

Jose Castillo
Cisco Employee
Cisco Employee

Tested the following wildcard with version 5.3.3 and 7.3.3 and with different platforms, both cases it matches the IPv6 peer address.

neighbor '.*:.*::.*'  

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: