From: Quentin Young Date: Sun, 28 Oct 2018 07:19:59 +0000 (+0000) Subject: zebra: cleanup some leftovers from removed cmds X-Git-Tag: frr-7.1-dev~191^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b1bd101570c4e545331342107089e3e5b1ca4c28;p=mirror%2Ffrr.git zebra: cleanup some leftovers from removed cmds * Remove vestigial 'secondary' option for v6 address installation functions * Update comments mentioning it Signed-off-by: Quentin Young --- diff --git a/zebra/interface.c b/zebra/interface.c index 76e0a09c17..5b866baaac 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -2767,7 +2767,7 @@ DEFUN (no_ip_address_label, static int ipv6_address_install(struct vty *vty, struct interface *ifp, const char *addr_str, const char *peer_str, - const char *label, int secondary) + const char *label) { struct zebra_if *if_data; struct prefix_ipv6 cp; @@ -2798,10 +2798,6 @@ static int ipv6_address_install(struct vty *vty, struct interface *ifp, *p = cp; ifc->address = (struct prefix *)p; - /* Secondary. */ - if (secondary) - SET_FLAG(ifc->flags, ZEBRA_IFA_SECONDARY); - /* Label. */ if (label) ifc->label = XSTRDUP(MTYPE_CONNECTED_LABEL, label); @@ -2857,7 +2853,7 @@ int ipv6_address_configured(struct interface *ifp) static int ipv6_address_uninstall(struct vty *vty, struct interface *ifp, const char *addr_str, const char *peer_str, - const char *label, int secondry) + const char *label) { struct prefix_ipv6 cp; struct connected *ifc; @@ -2915,7 +2911,7 @@ DEFUN (ipv6_address, int idx_ipv6_prefixlen = 2; VTY_DECLVAR_CONTEXT(interface, ifp); return ipv6_address_install(vty, ifp, argv[idx_ipv6_prefixlen]->arg, - NULL, NULL, 0); + NULL, NULL); } DEFUN (no_ipv6_address, @@ -2929,7 +2925,7 @@ DEFUN (no_ipv6_address, int idx_ipv6_prefixlen = 3; VTY_DECLVAR_CONTEXT(interface, ifp); return ipv6_address_uninstall(vty, ifp, argv[idx_ipv6_prefixlen]->arg, - NULL, NULL, 0); + NULL, NULL); } static int link_params_config_write(struct vty *vty, struct interface *ifp) diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 83b4ffa832..b93911bee7 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -248,7 +248,7 @@ int zsend_interface_link_params(struct zserv *client, struct interface *ifp) * RTM_IFANNOUNCE or AF_NETLINK sockets is available), or when * an interface is marked IFF_UP (i.e., an RTM_IFINFO message is * received) - * - for the vty commands "ip address A.B.C.D/M [|