+2004-10-11 Hasso Tepper <hasso at quagga.net>
+
+ * osp6_top.c, ospf6_top.h: Better handling for router-id. If we use
+ common one, don't output it into configuration - only statically
+ configured one.
+
2004-10-10 Paul Jakma <paul@dishone.st>
* Makefile.am: fix listing of ospf_snmp.c in noinst_HEADERS
return CMD_SUCCESS;
}
- o->router_id = router_id;
+ o->router_id_static = router_id;
+ if (o->router_id == 0)
+ o->router_id = router_id;
+
return CMD_SUCCESS;
}
if (CHECK_FLAG (ospf6->flag, OSPF6_DISABLED))
return CMD_SUCCESS;
- inet_ntop (AF_INET, &ospf6->router_id, router_id, sizeof (router_id));
+ inet_ntop (AF_INET, &ospf6->router_id_static, router_id, sizeof (router_id));
vty_out (vty, "router ospf6%s", VNL);
- vty_out (vty, " router-id %s%s", router_id, VNL);
+ if (ospf6->router_id_static != 0)
+ vty_out (vty, " router-id %s%s", router_id, VNL);
ospf6_redistribute_config_write (vty);
ospf6_area_config_write (vty);