Re: [c-nsp] IOS XR RPL Matching on neighbor IP/ASN

2021-11-22 Thread Saku Ytti
On Mon, 22 Nov 2021 at 11:14, Gert Doering wrote: > Haven't tried, but that would be extremely annoying. > > The use case I have in mind is using large communities to control > per-peer-AS exports, as in: > > :0: --> "do not announce to $yourasn" > :1: --> "prepend to $yourasn" We need to

Re: [c-nsp] IOS XR RPL Matching on neighbor IP/ASN

2021-11-22 Thread Gert Doering
Hi, On Mon, Nov 22, 2021 at 10:02:56AM +0100, Sascha E. Pollok wrote: > I have actually tried to specify a custom community as a parameter and match > against that > in the route-policy's condition but that didn't work with match-any > ($community). The > parser wouldn't let me commit that. >

Re: [c-nsp] IOS XR RPL Matching on neighbor IP/ASN

2021-11-22 Thread Sascha E. Pollok via cisco-nsp
--- Begin Message --- Moin Gert, if (neighbor-asn '12731') then # Announce this one prefix only, if receiving neighbor is in ASN 12731 done elseif (neighbor-ip '192.168.1.1') then # Announce this one prefix only, if receiving neighbor is 192.168.1.1 done endif Not

Re: [c-nsp] IOS XR RPL Matching on neighbor IP/ASN

2021-11-22 Thread Gert Doering
Hi, On Fri, Nov 19, 2021 at 05:48:56PM +0100, Sascha E. Pollok via cisco-nsp wrote: > So for example if I have a route-policy on a neighbor-group and would like to > announce a > specific prefix only to one of these neighbors, I would like to be able to do > something like: > > if (neighbor-

[c-nsp] IOS XR RPL Matching on neighbor IP/ASN

2021-11-19 Thread Sascha E. Pollok via cisco-nsp
--- Begin Message --- Hello people, I searched several IOS XR routing policy language documentations and also opened a TAC case but still searching an answer to the question: Is it possible to match on a neighbor's IP address or ASN inside a condition? So for example if I have a route-policy