]> git.puffer.fish Git - matthieu/frr.git/commitdiff
OSPFv3: Do not display default network type.
authorvivek <vivek@cumulusnetworks.com>
Tue, 8 Sep 2015 18:25:57 +0000 (11:25 -0700)
committervivek <vivek@cumulusnetworks.com>
Tue, 8 Sep 2015 18:25:57 +0000 (11:25 -0700)
Ticket: CM-3917
Reviewed By: CCR-3454
Testing Done: Manual verification

ospf6d/ospf6_interface.c

index 21751656b418f9652ef457916af99456f062066a..4b7745a62551880d0ccdb86022f64da94e35c2a7 100644 (file)
@@ -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);