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

Gert Doering <[email protected]>
Newsgroups gmane.network.nsp.cisco
Message-ID <YZtd8mO//[email protected]>
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.
> 
> Do the RPL variables only work for numbers? Then I wouldnt also assume that something like 
> match-any (12345:$var) would work?

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:

  <myasn>:0:<yourasn>  --> "do not announce to $yourasn"
  <myasn>:1:<yourasn>  --> "prepend to $yourasn"

and if that cannot be done by RPL parameters, this idea already looks
like "meh, nah, not worth the effort of having hundreds of nearly
identical policies"

  route-policy export-to-9999
     if match-any community in ( 5539:0:9999 )
     then
         drop
     fi
     apply decix-generic
  end-policy

*scratch head*

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-----

iQGcBAEBAgAGBQJhm13yAAoJEB2Cnv7KVigSKWgMAIj4x7rvHSC6F8c9Nao0U8P1
ZGhJW9Zgg4p5Q36fQIjpYZ9sL7o8kwHj9iSkbpKFE+GDqijwyJWaK4tGNWJZloYN
bm2sfl8vNnd/gV4A1kse+mRkTEt3swzEL6Lo+YDyI+R1q3Vz97Uu1eA+rGasI8b4
kRH700phbewCZ3se1HyYXJ93ft6pJjSqS30xoxlrvO49ltrfkplm1OPRI2dBsOTm
6HLOYZviRZwj2zf441mQr4gG9xE+QVxdL5207rF8x4XLWTiWY3q93vdzP50f3t0n
ojXU6WrQK5ucb22JbsyQAN9IriqplbTHquZY1M8pM406i66lXKyGgmuEFaWzhQgk
ZHqame/rckpqr+33XT/9EQDuacpdK1wnQ9slegUUNkNK64j+98RPqNzR+qcJLdLl
/bowKFdv3c87NwUDUY8g4/aJqpq95h66qnYxnmXqqCRqEdFgyKj/fRIY+75n4sm8
nrVVHA5hY+KWVoBnSjc6xJ++cyYqxenV33tenlXg1w==
=NbLc
-----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.