diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-08 15:16:14 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-08 19:15:59 +0200 |
commit | b2d7c082a2ec76e34c5ec528ac649e185d035616 (patch) | |
tree | 256011582e089e5ff80d0ec87ea8ea5d0d5a35f3 /ripngd | |
parent | lib, zebra: Rename ZEBRA_VRF_ACTIVE (diff) | |
download | frr-b2d7c082a2ec76e34c5ec528ac649e185d035616.tar.xz frr-b2d7c082a2ec76e34c5ec528ac649e185d035616.zip |
quagga: Remove iflist global variable
The file if.c has a iflist that had the list of interfaces
in the default vrf. Remove this variable and replace
with a vrf_iflist lookup on the default vrf where it
was used.
Additionally, modify ptm code to iterate over all vrf's
when enabling ptm.
Ticket: CM-10338
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: Radhika Mahankali <radhika@cumulusnetworks.com>
Diffstat (limited to 'ripngd')
-rw-r--r-- | ripngd/ripng_interface.c | 10 | ||||
-rw-r--r-- | ripngd/ripngd.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c index ca7f02ef5..15ce0a238 100644 --- a/ripngd/ripng_interface.c +++ b/ripngd/ripng_interface.c @@ -332,7 +332,7 @@ ripng_interface_clean (void) struct interface *ifp; struct ripng_interface *ri; - for (ALL_LIST_ELEMENTS (iflist, node, nnode, ifp)) + for (ALL_LIST_ELEMENTS (vrf_iflist (VRF_DEFAULT), node, nnode, ifp)) { ri = ifp->info; @@ -355,7 +355,7 @@ ripng_interface_reset (void) struct interface *ifp; struct ripng_interface *ri; - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) + for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) { ri = ifp->info; @@ -812,7 +812,7 @@ ripng_enable_apply_all (void) struct interface *ifp; struct listnode *node; - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) + for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) ripng_enable_apply (ifp); } @@ -877,7 +877,7 @@ ripng_passive_interface_apply_all (void) struct interface *ifp; struct listnode *node; - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) + for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) ripng_passive_interface_apply (ifp); } @@ -1148,7 +1148,7 @@ interface_config_write (struct vty *vty) struct ripng_interface *ri; int write = 0; - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) + for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) { ri = ifp->info; diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index 85c866e06..8b71269c0 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -1449,7 +1449,7 @@ ripng_update (struct thread *t) zlog_debug ("RIPng update timer expired!"); /* Supply routes to each interface. */ - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) + for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) { ri = ifp->info; @@ -1532,7 +1532,7 @@ ripng_triggered_update (struct thread *t) /* Split Horizon processing is done when generating triggered updates as well as normal updates (see section 2.6). */ - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) + for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) { ri = ifp->info; @@ -2143,7 +2143,7 @@ DEFUN (show_ipv6_ripng_status, vty_out (vty, " Interface Send Recv%s", VTY_NEWLINE); - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) + for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) { struct ripng_interface *ri; @@ -2760,7 +2760,7 @@ ripng_distribute_update_all (struct prefix_list *notused) struct interface *ifp; struct listnode *node; - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) + for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) ripng_distribute_update_interface (ifp); } @@ -2935,7 +2935,7 @@ ripng_routemap_update (const char *unused) struct interface *ifp; struct listnode *node; - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) + for (ALL_LIST_ELEMENTS_RO (vrf_iflist (VRF_DEFAULT), node, ifp)) ripng_if_rmap_update_interface (ifp); ripng_routemap_update_redistribute (); |