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

Gert Doering gert at greenie.muc.de
Mon Nov 22 03:14:37 EST 2021


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-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 sure if that is possible (but I can see why you'd want it).

It might be possible by having something like

   neigh 192.168.1.1 address-fam ipv6 u route-policy MyPolicy(192.168.1.1) out

... but I'm not sure you can have an IP address there and compare it 
to "something".  Numbers should work...

https://lukasz.bromirski.net/docs/prezos/2018-IOS-XR-RPL-CLN.pdf

page 23 and 24 have interesting-looking examples.

(And yes, it means "one extra line of config per neighbour", but that's
still better than "one distinct route-policy per neighbour")

gert
-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             gert at greenie.muc.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 630 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-nsp/attachments/20211122/fe2f3af1/attachment.sig>


More information about the cisco-nsp mailing list