forked from Mirror/frr
Merge pull request #15053 from opensourcerouting/fix/drop_ipv6_address_configured
zebra: Drop ipv6_address_configured() function
This commit is contained in:
commit
c3c5431da2
|
@ -5344,19 +5344,6 @@ static int ipv6_address_install(struct vty *vty, struct interface *ifp,
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return true if an ipv6 address is configured on ifp */
|
|
||||||
int ipv6_address_configured(struct interface *ifp)
|
|
||||||
{
|
|
||||||
struct connected *connected;
|
|
||||||
|
|
||||||
frr_each (if_connected, ifp->connected, connected)
|
|
||||||
if (CHECK_FLAG(connected->conf, ZEBRA_IFC_REAL)
|
|
||||||
&& (connected->address->family == AF_INET6))
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ipv6_address_uninstall(struct vty *vty, struct interface *ifp,
|
static int ipv6_address_uninstall(struct vty *vty, struct interface *ifp,
|
||||||
const char *addr_str, const char *peer_str,
|
const char *addr_str, const char *peer_str,
|
||||||
const char *label)
|
const char *label)
|
||||||
|
|
|
@ -283,7 +283,6 @@ extern void if_refresh(struct interface *);
|
||||||
extern void if_flags_update(struct interface *, uint64_t);
|
extern void if_flags_update(struct interface *, uint64_t);
|
||||||
extern int if_subnet_add(struct interface *, struct connected *);
|
extern int if_subnet_add(struct interface *, struct connected *);
|
||||||
extern int if_subnet_delete(struct interface *, struct connected *);
|
extern int if_subnet_delete(struct interface *, struct connected *);
|
||||||
extern int ipv6_address_configured(struct interface *ifp);
|
|
||||||
extern void if_handle_vrf_change(struct interface *ifp, vrf_id_t vrf_id);
|
extern void if_handle_vrf_change(struct interface *ifp, vrf_id_t vrf_id);
|
||||||
extern void zebra_if_update_link(struct interface *ifp, ifindex_t link_ifindex,
|
extern void zebra_if_update_link(struct interface *ifp, ifindex_t link_ifindex,
|
||||||
ns_id_t ns_id);
|
ns_id_t ns_id);
|
||||||
|
|
Loading…
Reference in a new issue