diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-04-15 15:28:29 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-04-15 15:28:29 +0200 |
commit | ebecb6f6a11bb418dd054cf12a2673ca0d9eac37 (patch) | |
tree | 9454aad3bd2e84fc65b518574aa9d112a0e5155c /proto/bgp/config.Y | |
parent | ae8b300164a975597f9b6caea0b205af2e4db30b (diff) |
Implements generalized import hooks.
Thanks to Alexander V. Chernikov for the original patch.
Diffstat (limited to 'proto/bgp/config.Y')
-rw-r--r-- | proto/bgp/config.Y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/proto/bgp/config.Y b/proto/bgp/config.Y index 78ca52de..5feaea0d 100644 --- a/proto/bgp/config.Y +++ b/proto/bgp/config.Y @@ -98,7 +98,11 @@ bgp_proto: | bgp_proto CAPABILITIES bool ';' { BGP_CFG->capabilities = $3; } | bgp_proto ADVERTISE IPV4 bool ';' { BGP_CFG->advertise_ipv4 = $4; } | bgp_proto PASSWORD TEXT ';' { BGP_CFG->password = $3; } - | bgp_proto ROUTE LIMIT expr ';' { BGP_CFG->route_limit = $4; } + | bgp_proto ROUTE LIMIT expr ';' { + this_proto->in_limit = cfg_allocz(sizeof(struct proto_limit)); + this_proto->in_limit->limit = $4; + this_proto->in_limit->action = PLA_RESTART; + } | bgp_proto PASSIVE bool ';' { BGP_CFG->passive = $3; } | bgp_proto INTERPRET COMMUNITIES bool ';' { BGP_CFG->interpret_communities = $4; } | bgp_proto IGP TABLE rtable ';' { BGP_CFG->igp_table = $4; } |