From: vivek Date: Tue, 8 Sep 2015 18:25:57 +0000 (-0700) Subject: OSPFv3: Do not display default network type. X-Git-Tag: frr-2.0-rc1~1261^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=1d3741042560c4d8e2bc5f0360d9e9f550659041;p=matthieu%2Ffrr.git OSPFv3: Do not display default network type. Ticket: CM-3917 Reviewed By: CCR-3454 Testing Done: Manual verification --- diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 21751656b4..4b7745a625 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1858,10 +1858,13 @@ config_write_ospf6_interface (struct vty *vty) if (oi->mtu_ignore) vty_out (vty, " ipv6 ospf6 mtu-ignore%s", VNL); - if (oi->type == OSPF_IFTYPE_POINTOPOINT) - vty_out (vty, " ipv6 ospf6 network point-to-point%s", VNL); - else if (oi->type == OSPF_IFTYPE_BROADCAST) - vty_out (vty, " ipv6 ospf6 network broadcast%s", VNL); + if (oi->type != ospf6_default_iftype(ifp)) + { + if (oi->type == OSPF_IFTYPE_POINTOPOINT) + vty_out (vty, " ipv6 ospf6 network point-to-point%s", VNL); + else if (oi->type == OSPF_IFTYPE_BROADCAST) + vty_out (vty, " ipv6 ospf6 network broadcast%s", VNL); + } ospf6_bfd_write_config(vty, oi);