if you do not use "then" clause the default action is "accept". you can use 
these policy statement under protocol bgp.

--- On Tue, 4/20/10, Ben Greear <[email protected]> wrote:

> From: Ben Greear <[email protected]>
> Subject: Re: [Xorp-hackers] BGP questions
> To: "Li Zhao" <[email protected]>
> Cc: "xorp" <[email protected]>
> Date: Tuesday, April 20, 2010, 1:18 PM
> On 04/20/2010 10:15 AM, Li Zhao
> wrote:
> > The real simple one might be that using two routers to
> build bgp adjacency. And then redistribute some static
> routes. And then change interface state which the static
> route is using as next-hop to see if bgp stopped
> redistributing it.
> 
> Ok, I'll try that next.  I wasn't using any policies
> before, but I'm
> guessing that I need export policies similar to what I have
> below?
> 
>          "policy {\n"
>          "   
> policy-statement static-to-bgp {\n"
>          "   
>     term export {\n"
>          "   
>         from {\n"
>          "   
>             protocol:
> \"static\"\n"
>          "   
>         }\n"
>          "   
>         then {\n"
>          "   
>             metric: 0\n"
>          "   
>         }\n"
>          "   
>     }\n"
>          "   
> }\n\n";
> 
>          "   
> policy-statement connected-to-bgp {\n"
>          "   
>     term export {\n"
>          "   
>         from {\n"
>          "   
>             protocol:
> \"connected\"\n"
>          "   
>         }\n"
>          "   
>         then {\n"
>          "   
>             metric: 0\n"
>          "   
>         }\n"
>          "   
>     }\n"
>          "    }\n"
>          "}\n\n";
> 
> Thanks,
> Ben
> 
> -- Ben Greear <[email protected]>
> Candela Technologies Inc  http://www.candelatech.com
> 
> 


      

_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to