[j-nsp] MX series BGP config macros ?

Jackson, William william.jackson at gibtele.com
Sat Nov 5 16:29:06 EDT 2016


The parameter feature in IOS-XR is very nice, although there are other parts that aren’t so great.
I havent seen anything like this on Junos.

I must say I believe that this part of Junos has been abandoned somewhat and could do with some developer time.

On 05/11/2016, 21:24, "juniper-nsp on behalf of John Brown" <juniper-nsp-bounces at puck.nether.net on behalf of john at citylinkfiber.com> wrote:

    Hi,
    
    I'm trying to build a BGP policy config that will advertise routes based on how
    a subscriber tags a route towards us.
    
    If they send a route with community 65010:XXX  with XXX = an ASN
    then we will not announce it towards that ASN.
    
    In a small configuration this is pretty easy to do, but I'm looking at
    trying to
    see if there is a more elegant and scaleable solution.
    
    With hundreds of peers on a router, it doesn't make sense to have a bunch of
    community members for each ASN
    
    It would be nice to have code that did
    
    
    protocol bgp
    group  eBGP-Some-Peer
    peer-as 1234
    export [Dont-Export]
    
    
    policy-statement  Dont-Export
    term
        from
             protocol bgp
             community 65010:$PEERASN
        then
             reject
    
    
    
    Where $PEERASN gets expanded to 1234 because of the BGP session
    it is associated with.
    
    Then I can just apply Dont-Export to multiple peers and not have to customize
    it for each one
    
    
    
    Hopefully this explains it well enough.
    
    Thank you
    _______________________________________________
    juniper-nsp mailing list juniper-nsp at puck.nether.net
    https://puck.nether.net/mailman/listinfo/juniper-nsp
    



More information about the juniper-nsp mailing list