[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cisco-nsp
Subject:    Re: [c-nsp] IOS-XR Nested Route Policy
From:       Arie Vayner <ariev () vayner ! net>
Date:       2015-12-19 5:31:00
Message-ID: CAP9danfAHYA+P3=19iqRC2-3X2ZsaiYvxWrmosZCYsfHUjjceg () mail ! gmail ! com
[Download RAW message or body]

Yes, it works just fine.

On Wed, Nov 25, 2015, 03:52 Arthur Liew <arthurliew80@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@puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>
_______________________________________________
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic