summaryrefslogtreecommitdiffstats
path: root/proto/bgp/config.Y
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-01-27 17:22:57 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-01-27 17:22:57 +0100
commit6cb8f742f1adf99881334b8ae21c398d98571aa1 (patch)
tree3e20c14d7e25002cae145ac3bdb172cb2d3eac77 /proto/bgp/config.Y
parenta3062085827db3115961eacd9d945ac202728174 (diff)
downloadbird-6cb8f742f1adf99881334b8ae21c398d98571aa1.tar
bird-6cb8f742f1adf99881334b8ae21c398d98571aa1.zip
Better handling of well-known communities.
Process well-known communities before the export filter (old behavior is to process these attributes after, which does not allow to send route with such community) and just for routes received from other BGP protocols. Also fixes a bug in next_hop check.
Diffstat (limited to 'proto/bgp/config.Y')
-rw-r--r--proto/bgp/config.Y3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/bgp/config.Y b/proto/bgp/config.Y
index b2061a1..cf32cd1 100644
--- a/proto/bgp/config.Y
+++ b/proto/bgp/config.Y
@@ -23,7 +23,7 @@ CF_KEYWORDS(BGP, LOCAL, NEIGHBOR, AS, HOLD, TIME, CONNECT, RETRY, KEEPALIVE,
BGP_ATOMIC_AGGR, BGP_AGGREGATOR, BGP_COMMUNITY, SOURCE, ADDRESS,
PASSWORD, RR, RS, CLIENT, CLUSTER, ID, AS4, ADVERTISE, IPV4,
CAPABILITIES, LIMIT, PASSIVE, PREFER, OLDER, MISSING, LLADDR,
- DROP, IGNORE, ROUTE, REFRESH)
+ DROP, IGNORE, ROUTE, REFRESH, COMMUNITIES)
CF_GRAMMAR
@@ -86,6 +86,7 @@ bgp_proto:
| bgp_proto PASSWORD TEXT ';' { BGP_CFG->password = $3; }
| bgp_proto ROUTE LIMIT expr ';' { BGP_CFG->route_limit = $4; }
| bgp_proto PASSIVE bool ';' { BGP_CFG->passive = $3; }
+ | bgp_proto IGNORE COMMUNITIES bool ';' { BGP_CFG->ignore_communities = $4; }
;
CF_ADDTO(dynamic_attr, BGP_PATH