From 8d94a524b637dbb1513c23daefa8411dcdc9a054 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 16 Jul 2004 08:27:11 +0000 Subject: Added handling of STUB bool. --- proto/ospf/config.Y | 1 + 1 file changed, 1 insertion(+) (limited to 'proto/ospf/config.Y') 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 -- cgit v1.2.3