+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.
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"
/* 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);
}
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);
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 ();
#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. */