]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Changed definition of stub area.
authorOndrej Filip <feela@network.cz>
Sat, 11 Aug 2001 16:22:29 +0000 (16:22 +0000)
committerOndrej Filip <feela@network.cz>
Sat, 11 Aug 2001 16:22:29 +0000 (16:22 +0000)
doc/bird.sgml
proto/ospf/config.Y

index 762b5fd3392eac4fa6b3bbe9a11871633786fc0a..bab4679f075e814484dbf1f402b6891a5c47e0aa 100644 (file)
@@ -1009,7 +1009,7 @@ on nonbroadcast networks.
 protocol ospf &lt;name&gt; {
        rfc1583compat &lt;switch&gt;;
        area &lt;id&gt; {
-               stub &lt;switch&gt;;
+               stub cost &lt;num&gt;;
                tick &lt;num&gt;;
                interface &lt;interface pattern&gt;
                {
@@ -1047,8 +1047,10 @@ protocol ospf &lt;name&gt; {
         The most important area is
         the backbone (ID 0) to which every other area must be connected.
 
-       <tag>stub <M>switch</M></tag>
-        No external routes are flooded into stub areas. Default value is no.
+       <tag>stub cost <M>num</M></tag>
+        No external (except default) routes are flooded into stub areas.
+         Setting this value marks area stub with defined cost of default route.
+        Default value is no. (Area is not stub.)
 
        <tag>tick <M>num</M></tag>
         The routing table calculation is not performed when a single link state
index 459a236c67af1cc44f019eafaf64df5b40c9932c..140cbb449bcbc816071a1975ce2f01075bed9d7b 100644 (file)
@@ -70,7 +70,7 @@ ospf_area_opts:
  ;
 
 ospf_area_item:
-   STUB bool { this_area->stub = $2 ; }
+   STUB COST expr { this_area->stub = $3 ; if($3<=0) cf_error("Stub cost must be greater than zero"); }
  | TICK expr { this_area->tick = $2 ; if($2<=0) cf_error("Tick must be greater than zero"); }
  | INTERFACE ospf_iface_list
  ;