summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2015-09-08 20:25:57 +0200
committervivek <vivek@cumulusnetworks.com>2015-09-08 20:25:57 +0200
commit1d3741042560c4d8e2bc5f0360d9e9f550659041 (patch)
tree10356e7a90c4bfa42a80a7748ea5540d0c243d41 /ospf6d
parentFix bgp_exit crash (diff)
downloadfrr-1d3741042560c4d8e2bc5f0360d9e9f550659041.tar.xz
frr-1d3741042560c4d8e2bc5f0360d9e9f550659041.zip
OSPFv3: Do not display default network type.
Ticket: CM-3917 Reviewed By: CCR-3454 Testing Done: Manual verification
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_interface.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c
index 21751656b..4b7745a62 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);