diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-10-03 03:06:03 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-10-10 14:05:02 +0200 |
commit | 8928a08f657948c5d04807de399b89051ae54d88 (patch) | |
tree | 9639d1a05de75c6fac58dea45d3807d471f10ab4 /ripd | |
parent | *: use rb-trees to store interfaces instead of sorted linked-lists (diff) | |
download | frr-8928a08f657948c5d04807de399b89051ae54d88.tar.xz frr-8928a08f657948c5d04807de399b89051ae54d88.zip |
*: eliminate IFINDEX_DELETED in favor of IFINDEX_INTERNAL
IFINDEX_DELETED is not necessary anymore as we moved from a global
list of interfaces to a list of interfaces per VRF.
This reverts commit 84361d615.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd')
-rw-r--r-- | ripd/rip_interface.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index fe72de229..6fba0512e 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -471,7 +471,7 @@ int rip_interface_delete(int command, struct zclient *zclient, /* To support pseudo interface do not free interface structure. */ /* if_delete(ifp); */ - ifp->ifindex = IFINDEX_DELETED; + ifp->ifindex = IFINDEX_INTERNAL; return 0; } @@ -1734,9 +1734,6 @@ static int rip_interface_config_write(struct vty *vty) RB_FOREACH (ifp, if_name_head, &vrf->ifaces_by_name) { struct rip_interface *ri; - if (ifp->ifindex == IFINDEX_DELETED) - continue; - ri = ifp->info; /* Do not display the interface if there is no |