[c-nsp] IOS-XR Nested Route Policy

Arie Vayner ariev at vayner.net
Sat Dec 19 00:31:00 EST 2015


Yes, it works just fine.

On Wed, Nov 25, 2015, 03:52 Arthur Liew <arthurliew80 at gmail.com> wrote:

> Dear Guys,
>
> I would like to implement a nested routing policy in IOS-XR within our
> network. Sample policy at the bottom of email.
>
> We have the following versions in our network
>
> IOS-XR 3.9.2
>
> IOS-XR 4.2.0
> IOS-XR 5.2.0
>
> I am just wondering if anyone of you have ever implemented this & do share
> with me if there's any issues faced or comments for different versions of
> IOS-XR.
>
> Cheers !
>
> Rgds
> Arthur
>
> ---------------------------------------------------
>
> route-policy BGP-IN-ISP
>
>  apply BGP-IN-BASE-POLICY
>
>  if as-path in isp-as-path-in-permit then
>
>     set community isp-routes
>
>     set local-preference 100
>
>     pass
>
>   else
>
>     drop
>
>   endif
>
> end-policy
>
> ---------------------------------------------------
>
> route-policy BGP-OUT-ISP
>
>   apply BGP-OUT-BASE-POLICY
>
>   pass
>
> end-policy
>
> ---------------------------------------------------
>
> route-policy BGP-IN-BASE-POLICY
>
>  # Repetitive route processing required in all peering
>
>  if destination in bogon-ipv4-deny
>
>      drop
>
>  elseif destination in prefixsize-ipv4-permit then
>
>     pass
>
>  else
>
>      drop
>
>  endif
>
> end-policy
>
>
> ---------------------------------------------------
>
>  route-policy BGP-OUT-BASE-POLICY
>
>  # Repetitive route processing required in all peering
>
>  if (destination in isp-own-ipv4 or as-path in METRO_E) and (destination in
> prefixsize-ipv4-permit) then
>
>      pass
>
>  else
>
>      drop
>
>  endif
>
> end-policy
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>


More information about the cisco-nsp mailing list