summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-03 10:42:04 +0200
committerOndrej Filip <feela@network.cz>2000-06-03 10:42:04 +0200
commita789d814ddd8473fdb85bedb02014f6cb6435373 (patch)
tree8a08cc58ac1e1fddf43d8f4fe697548f71b784bf /proto
parent89d6782dd1a7775a292db3b2b622c8a48dbd757c (diff)
downloadbird-a789d814ddd8473fdb85bedb02014f6cb6435373.tar
bird-a789d814ddd8473fdb85bedb02014f6cb6435373.zip
Multiple items in area {} :-)
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/config.Y10
1 files changed, 8 insertions, 2 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y
index 3e13eaf..fe5b33d 100644
--- a/proto/ospf/config.Y
+++ b/proto/ospf/config.Y
@@ -40,7 +40,7 @@ ospf_proto:
ospf_proto_start proto_name '{'
| ospf_proto proto_item ';'
| ospf_proto RFC1583COMPAT bool ';' { OSPF_CFG->rfc1583 = $3; }
- | ospf_proto ospf_area '}'
+ | ospf_proto ospf_area
;
ospf_area_start: AREA idval '{' {
@@ -54,9 +54,15 @@ ospf_area_start: AREA idval '{' {
;
ospf_area: ospf_area_start
- | ospf_area_start ospf_area_item
+ | ospf_area_start ospf_area_list
;
+ospf_area_list: /*EMPTY*/ | ospf_area_opts '}'
+;
+
+ospf_area_opts:
+ | ospf_area_opts ospf_area_item
+
ospf_area_item:
| STUB bool ';' { this_area->stub = $2 ; }
| TICK NUM ';' { this_area->tick = $2 ; }