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 [email protected]
signature.asc
Description: PGP signature
_______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
