]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Ensure IPv6 RA configuration is displayed correctly
authorvivek <vivek@cumulusnetworks.com>
Mon, 23 May 2016 16:46:14 +0000 (09:46 -0700)
committervivek <vivek@cumulusnetworks.com>
Mon, 23 May 2016 16:46:14 +0000 (09:46 -0700)
IPv6 RAs on an interface can be enabled either by the operator or internally
due to the configuration of a BGP unnumbered neighbor. Ensure that this is
displayed in the configuration correctly.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-11076
Reviewed By: CCR-4770
Testing Done: Manual; also verified by defect submitter.

zebra/rtadv.c

index 59542481ddc4bec6862c3b954e27db2f9af8afed..72ae21657ff5d2dd6ba31ad68126767d368da917 100644 (file)
@@ -1884,16 +1884,8 @@ rtadv_config_write (struct vty *vty, struct interface *ifp)
   if (!(if_is_loopback (ifp) ||
         CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_VRF_LOOPBACK)))
     {
-      if (ipv6_address_configured(ifp))
-        {
-          if (! zif->rtadv.AdvSendAdvertisements)
-            vty_out (vty, " ipv6 nd suppress-ra%s", VTY_NEWLINE);
-        }
-      else
-        {
-          if (zif->rtadv.AdvSendAdvertisements)
-            vty_out (vty, " no ipv6 nd suppress-ra%s", VTY_NEWLINE);
-        }
+      if (zif->rtadv.AdvSendAdvertisements)
+        vty_out (vty, " no ipv6 nd suppress-ra%s", VTY_NEWLINE);
     }
   
   interval = zif->rtadv.MaxRtrAdvInterval;