From bf42207332e8e502d636038f1ec44aaea6ec50e0 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 28 Apr 2012 13:03:48 +0200 Subject: [PATCH] Changes keyword 'exceed' to 'action'. --- doc/bird.sgml | 19 +++++++++++++------ nest/config.Y | 10 +++++----- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 91cad085..a94fb9e1 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -426,21 +426,28 @@ to zero to disable it. An empty is equivalent to import all | none | filter - Specify a filter to be used for filtering routes coming from the protocol to the routing table. export This is similar to the import keyword, except that it - works in the direction from the routing table to the protocol. Default: export + This is similar to the import keyword, except that it + works in the direction from the routing table to the protocol. + Default: import limit + import limit Specify an import route limit (a maximum number of routes imported from the protocol) and optionally the action to be taken when the limit is hit. Warn action just prints warning log message. Block action ignores new routes coming from the protocol. Restart and disable actions shut the protocol down like appropriate commands. Disable is the default action if an - action is not explicitly specified. Default: export limit + export limit Specify an export route limit, works similarly to the import limit option, but for the routes exported to the protocol. This option is experimental, there are some diff --git a/nest/config.Y b/nest/config.Y index c59319cb..14cff10a 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -44,7 +44,7 @@ CF_DECLS CF_KEYWORDS(ROUTER, ID, PROTOCOL, TEMPLATE, PREFERENCE, DISABLED, DEBUG, ALL, OFF, DIRECT) CF_KEYWORDS(INTERFACE, IMPORT, EXPORT, FILTER, NONE, TABLE, STATES, ROUTES, FILTERS) -CF_KEYWORDS(EXCEED, LIMIT, WARN, BLOCK, RESTART, DISABLE) +CF_KEYWORDS(LIMIT, ACTION, WARN, BLOCK, RESTART, DISABLE) CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID, EVENTS, PACKETS, PROTOCOLS, INTERFACES) CF_KEYWORDS(PRIMARY, STATS, COUNT, FOR, COMMANDS, PREEXPORT, GENERATE, ROA, MAX, FLUSH) CF_KEYWORDS(LISTEN, BGP, V6ONLY, DUAL, ADDRESS, PORT, PASSWORDS, DESCRIPTION) @@ -194,10 +194,10 @@ imexport: limit_action: /* default */ { $$ = PLA_DISABLE; } - | EXCEED WARN { $$ = PLA_WARN; } - | EXCEED BLOCK { $$ = PLA_BLOCK; } - | EXCEED RESTART { $$ = PLA_RESTART; } - | EXCEED DISABLE { $$ = PLA_DISABLE; } + | ACTION WARN { $$ = PLA_WARN; } + | ACTION BLOCK { $$ = PLA_BLOCK; } + | ACTION RESTART { $$ = PLA_RESTART; } + | ACTION DISABLE { $$ = PLA_DISABLE; } ; limit_spec: