summaryrefslogtreecommitdiffstats
path: root/proto/bgp/config.Y
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-12 15:56:04 +0200
committerMartin Mares <mj@ucw.cz>2000-04-12 15:56:04 +0200
commit12d5677aa3e6217edc7d5508ac3dbbf87edc8624 (patch)
tree83d1b3b68b7e19f7f60aad148ddfad59517f11a7 /proto/bgp/config.Y
parent2803c9ddbeca3ece264e618b3a63669e25f4dd85 (diff)
downloadbird-12d5677aa3e6217edc7d5508ac3dbbf87edc8624.tar
bird-12d5677aa3e6217edc7d5508ac3dbbf87edc8624.zip
Define BGP_PATH.
Diffstat (limited to 'proto/bgp/config.Y')
-rw-r--r--proto/bgp/config.Y4
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/bgp/config.Y b/proto/bgp/config.Y
index f18f2bd..ad9cf8c 100644
--- a/proto/bgp/config.Y
+++ b/proto/bgp/config.Y
@@ -15,7 +15,7 @@ CF_HDR
CF_DECLS
CF_KEYWORDS(BGP, LOCAL, NEIGHBOR, AS, HOLD, TIME, CONNECT, RETRY, KEEPALIVE,
- MULTIHOP, STARTUP, VIA, NEXT, HOP, SELF)
+ MULTIHOP, STARTUP, VIA, NEXT, HOP, SELF, BGP_PATH)
CF_GRAMMAR
@@ -50,6 +50,8 @@ bgp_proto:
| bgp_proto NEXT HOP SELF ';' { BGP_CFG->next_hop_self = 1; }
;
+CF_ADDTO(dynamic_attr, BGP_PATH { $$ = f_new_dynamic_attr(EAF_TYPE_AS_PATH, EA_CODE(EAP_BGP, BA_AS_PATH)); })
+
CF_CODE
CF_END