From: Christian Franke Date: Thu, 24 Jan 2013 14:04:45 +0000 (+0000) Subject: zebra: clear ZEBRA_IFC_CONFIGURED on "no ipv6 addr" X-Git-Tag: frr-2.0-rc1~1646 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=676e1a0142ec8b181d4d7ea1038f461bc67c1ee1;p=matthieu%2Ffrr.git zebra: clear ZEBRA_IFC_CONFIGURED on "no ipv6 addr" 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 Signed-off-by: David Lamparter --- diff --git a/zebra/interface.c b/zebra/interface.c index baa7ab6383..cd78ebbcd4 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))