]> git.puffer.fish Git - mirror/frr.git/commitdiff
2005-07-12 Paul Jakma <paul.jakma@sun.com>
authorpaul <paul>
Tue, 12 Jul 2005 20:04:22 +0000 (20:04 +0000)
committerpaul <paul>
Tue, 12 Jul 2005 20:04:22 +0000 (20:04 +0000)
* ospfd.h: add OSPF_ABR_DEFAULT for convenience, make
  OSPF_ABR_CISCO be the default ABR type.
* ospfd.c: (ospf_new) initialise abr_type to OSPF_ABR_DEFAULT
* ospf_vty.c: (no_ospf_abr_type_cmd) add standard as a negatable
  abr_type. default abr_type should be OSPF_ABR_DEFAULT.
  (ospf_config_write) test whether default abr_type against
  OSPF_ABR_DEFAULT, rather than any specific ABR_TYPE.

ospfd/ChangeLog
ospfd/ospf_vty.c
ospfd/ospfd.c
ospfd/ospfd.h

index 9d1b2fa1de52d71d72501e80e2963ce8a8749156..d0cc5455e0d40e26ca50c1185c0e8e4e5fc3b222 100644 (file)
@@ -1,3 +1,13 @@
+2005-07-12 Paul Jakma <paul.jakma@sun.com>
+
+       * ospfd.h: add OSPF_ABR_DEFAULT for convenience, make 
+         OSPF_ABR_CISCO be the default ABR type.
+       * ospfd.c: (ospf_new) initialise abr_type to OSPF_ABR_DEFAULT
+       * ospf_vty.c: (no_ospf_abr_type_cmd) add standard as a negatable
+         abr_type. default abr_type should be OSPF_ABR_DEFAULT.
+         (ospf_config_write) test whether default abr_type against
+         OSPF_ABR_DEFAULT, rather than any specific ABR_TYPE.
+
 2005-06-20 Hasso Tepper <hasso at quagga.net>
 
        * ospf_nsm.c: Make database exchange for NSSA database work. 
index 2f0824a73e8a3b12cb76888a40f30e4f23ba4bc0..179464cc378d554334cf295dcc736a507a27261b 100644 (file)
@@ -2016,7 +2016,7 @@ DEFUN (ospf_abr_type,
 
 DEFUN (no_ospf_abr_type,
        no_ospf_abr_type_cmd,
-       "no ospf abr-type (cisco|ibm|shortcut)",
+       "no ospf abr-type (cisco|ibm|shortcut|standard)",
        NO_STR
        "OSPF specific commands\n"
        "Set OSPF ABR type\n"
@@ -2039,7 +2039,7 @@ DEFUN (no_ospf_abr_type,
   /* If ABR type value is changed, schedule ABR task. */
   if (ospf->abr_type == abr_type)
     {
-      ospf->abr_type = OSPF_ABR_STAND;
+      ospf->abr_type = OSPF_ABR_DEFAULT;
       ospf_schedule_abr_task (ospf);
     }
 
@@ -7290,7 +7290,7 @@ ospf_config_write (struct vty *vty)
                  inet_ntoa (ospf->router_id_static), VTY_NEWLINE);
 
       /* ABR type print. */
-      if (ospf->abr_type != OSPF_ABR_STAND)
+      if (ospf->abr_type != OSPF_ABR_DEFAULT)
         vty_out (vty, " ospf abr-type %s%s", 
                  ospf_abr_type_str[ospf->abr_type], VTY_NEWLINE);
 
index 30164d02e6afa71b4ea27d9bea34c55d49c06a7c..189805b396f5ead8cb4592ba7f83d5635eb4d7da 100644 (file)
@@ -157,7 +157,7 @@ ospf_new (void)
   new->router_id.s_addr = htonl (0);
   new->router_id_static.s_addr = htonl (0);
 
-  new->abr_type = OSPF_ABR_STAND;
+  new->abr_type = OSPF_ABR_DEFAULT;
   new->oiflist = list_new ();
   new->vlinks = list_new ();
   new->areas = list_new ();
index 8dae8f806398e92bee7bec0d7a0613aacb79a0e2..30d276f8bab9bc4868a01aeb117960404ecff4b1 100644 (file)
@@ -168,6 +168,7 @@ struct ospf
 #define OSPF_ABR_IBM            2
 #define OSPF_ABR_CISCO          3
 #define OSPF_ABR_SHORTCUT       4
+#define OSPF_ABR_DEFAULT       OSPF_ABR_CISCO
 
   /* NSSA ABR */
   u_char anyNSSA;              /* Bump for every NSSA attached. */