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

Gert Doering <[email protected]>
Newsgroups gmane.network.nsp.cisco
Message-ID <[email protected]>
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]

_______________________________________________
cisco-nsp mailing list  [email protected]
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
signature.asc (application/pgp-signature, 630 B)
-----BEGIN PGP SIGNATURE-----

iQGcBAEBAgAGBQJhm1FtAAoJEB2Cnv7KVigStscL/Rvb1keVt0ssFyNCiwqQ5Lns
TaTnfMu4YhP0q4lekBydT1IxaxZDt2WyowEWNipk2r+lrjaHXb3LF0hpyS95JUKi
ni6d+emu5ltm0UmAiLeHmiEfqH/OAbi4wdIZp/tR6XNXDK8dQE0WC8mVBCQBCrly
xtL/zPaHy4Je3PJfsCCDwKv6e7GnxhRY2UX/n//8AmeXX+9L+uX6cRJsZLrvfQhY
rLymaWyiWeehqdte5Lf27ecvjheIAdcOsnfLTIZMkZtqq0nFNeYTufNic/ZZvaSN
dVS4z1BngXMYcM/ixkNN5DUV/GHK8tbbFUk8tva2DdCIoCfkOFpr8bmHexu/pbtM
3J/uLARE0ralWzatnZAJFIyT8kLf5zdKSKEu2twdpjFQf5AHYzEjkEKpH0rFw94F
m2q6hKDgkAMCvHmvZIY/SEqDUE/JbstYniCkHyaH+EWZ73FVsMZ1sPmAJQmPUD9w
cYrYnGC/Cw/271v17n/2Hke9k4BIv0Iz1HNi0uiE2g==
=cYoU
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.