[quagga-dev 10225] [PATCH 3/8] zebra: clear ZEBRA_IFC_CONFIGURED on "no ipv6 addr"

Christian Franke chris at opensourcerouting.org
Thu Jan 24 15:04:45 GMT 2013


To match the semantics of IPv4, the ZEBRA_IFC_CONFIGURED flag
should be cleared when an IPv6 connected is uninstalled via
vty.

Signed-off-by: Christian Franke <chris at opensourcerouting.org>
---
 zebra/interface.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/zebra/interface.c b/zebra/interface.c
index baa7ab6..cd78ebb 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -1499,6 +1499,8 @@ ipv6_address_uninstall (struct vty *vty, struct interface *ifp,
   if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_CONFIGURED))
     return CMD_WARNING;
 
+  UNSET_FLAG (ifc->conf, ZEBRA_IFC_CONFIGURED);
+
   /* This is not real address or interface is not active. */
   if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_REAL)
       || ! CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE))
-- 
1.7.10.4





More information about the Quagga-dev mailing list