Hey,
Or you could simply enter the ios-regex into the policy directly if you are
just going to use it once:
route-policy test
if community matches-any ( ios-regex '1234:600[0..9]' ) then
# do do do
done
endif
end-policy
Best Regards
Ted
-----Original Message-----
From: cisco-nsp [mailto:[email protected]] On Behalf Of James
Jun
Sent: den 10 december 2016 00:17
To: Jason Lixfeld <[email protected]>
Cc: Cisco Network Service Providers <[email protected]>
Subject: Re: [c-nsp] IOS-XR RPL parameters
Hey,
On Fri, Dec 09, 2016 at 04:11:39PM -0500, Jason Lixfeld wrote:
> RP/0/0/CPU0:xr(config-rpl)#if community matches-any ( 1234:600[0..9] )
> then
You will need to use regex with community-set for that:
!
community-set a-all-net
ios-regex '^64552:5...$'
end-set
!
route-policy test
if community matches-any a-all-net then
# do stuff here
done
endif
end-policy
!
James
_______________________________________________
cisco-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
******** IMPORTANT NOTICE ********
The content of this e-mail is intended for the addressee(s) only and may
contain information that is confidential and/or otherwise protected from
disclosure. If you are not the intended recipient, please note that any
copying, distribution or any other use or dissemination of the information
contained in this e-mail (and its attachments) is strictly prohibited. If you
have received this e-mail in error, kindly notify the sender immediately by
replying to this e-mail and delete the e-mail and any copies thereof.
Tele2 AB (publ) and its subsidiaries (“Tele2 Group”) accepts no responsibility
for the consequences of any viruses, corruption or other interference
transmitted by e-mail.
_______________________________________________
cisco-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/