diff options
author | vivek <vivek@cumulusnetworks.com> | 2015-09-08 20:25:57 +0200 |
---|---|---|
committer | vivek <vivek@cumulusnetworks.com> | 2015-09-08 20:25:57 +0200 |
commit | 1d3741042560c4d8e2bc5f0360d9e9f550659041 (patch) | |
tree | 10356e7a90c4bfa42a80a7748ea5540d0c243d41 /ospf6d | |
parent | Fix bgp_exit crash (diff) | |
download | frr-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.c | 11 |
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); |