summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2014-03-31 00:56:44 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2014-03-31 01:52:28 +0200
commitd7c0628591b802e202903b63fce53b6a422a3db2 (patch)
tree2202050e07a73c435785565b6e74e0116f8fad39 /proto/ospf
parent0c3d9dacafdb807d2101c67610969707353f434a (diff)
Check validity of interface definitions.
Thanks to Aleksey Berezin for the bugreport.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/config.Y6
1 files changed, 5 insertions, 1 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y
index f894f134..90f289d0 100644
--- a/proto/ospf/config.Y
+++ b/proto/ospf/config.Y
@@ -386,6 +386,10 @@ ospf_instance_id:
| INSTANCE expr { set_instance_id($2); }
;
+ospf_iface_patt_list:
+ iface_patt_list { if (OSPF_VERSION == 3) iface_patt_check(); } ospf_instance_id
+ ;
+
ospf_iface_opts:
/* empty */
| ospf_iface_opts ospf_iface_item ';'
@@ -397,7 +401,7 @@ ospf_iface_opt_list:
;
ospf_iface:
- ospf_iface_start iface_patt_list ospf_instance_id ospf_iface_opt_list { ospf_iface_finish(); }
+ ospf_iface_start ospf_iface_patt_list ospf_iface_opt_list { ospf_iface_finish(); }
;
opttext: