summaryrefslogtreecommitdiffstats
path: root/proto/ospf/config.Y
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-07-16 10:27:11 +0200
committerOndrej Filip <feela@network.cz>2004-07-16 10:27:11 +0200
commit8d94a524b637dbb1513c23daefa8411dcdc9a054 (patch)
tree962b5fb27d5c1900b97c60ec634973e77eb40015 /proto/ospf/config.Y
parent73089070e6e5c94ffac2da4c9e267ae9bcda2164 (diff)
downloadbird-8d94a524b637dbb1513c23daefa8411dcdc9a054.tar
bird-8d94a524b637dbb1513c23daefa8411dcdc9a054.zip
Added handling of STUB bool.
Diffstat (limited to 'proto/ospf/config.Y')
-rw-r--r--proto/ospf/config.Y1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y
index 7a07e6e..3a021db 100644
--- a/proto/ospf/config.Y
+++ b/proto/ospf/config.Y
@@ -75,6 +75,7 @@ ospf_area_opts:
ospf_area_item:
STUB COST expr { this_area->stub = $3 ; if($3<=0) cf_error("Stub cost must be greater than zero"); }
+ | STUB bool {if($2) { if(!this_area->stub) this_area->stub=DEFAULT_STUB_COST;}else{ this_area->stub=0;}}
| NETWORKS '{' pref_list '}'
| INTERFACE ospf_iface_list
| ospf_vlink