Does OpenBGPd have something similar to Cisco's weight attribute? I looked at the man page and it doesn't seem to mention weight.
A brief summary of what I'm trying to do. I have two sites, A and B. Both sites are in the same AS. Routers A and B both have a link to different ISPs and a private link to each other. Router A talks EBGP to its ISP and router B talks EBGP to its ISP. Routers A and B both talk IBGP to each other. I want each site to prefer the route provided by its ISP, even if the alternate route has a shorter AS path. Site A should never use a route from router B for Internet-based traffic unless it doesn't have a route to the destination from its ISP. Likewise, Site B should never use a route from router A for Internet-based traffic unless it doesn't have a route to the destination from its ISP. I'm currently using weight to achieve this behavior. I can't use local preference since that would make all Internet-bound traffic go through one of the two routers. This message may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient of this message you may not store, disclose, copy, forward, distribute or use this message or its contents for any purpose. If you have received this communication in error, please notify us immediately by return e-mail and delete the original message and any attachments from your e-mail system. Thank you.