summaryrefslogtreecommitdiffstats
path: root/pimd/pim_upstream.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-04 16:59:45 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-24 19:51:33 +0200
commit0708beb1f464fb26f0d74da6857863778c9fb2f2 (patch)
tree57104264b322732b6a331444d8c2e557758a7cd2 /pimd/pim_upstream.c
parentvtysh: Allow vtysh to pass through vrf commands to pim (diff)
downloadfrr-0708beb1f464fb26f0d74da6857863778c9fb2f2.tar.xz
frr-0708beb1f464fb26f0d74da6857863778c9fb2f2.zip
pimd: Cleanup use of VRF_DEFAULT to pimg->vrf_id
Use the appropriate vrf_id instead of always defaulting to VRF_DEFAULT Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_upstream.c')
-rw-r--r--pimd/pim_upstream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c
index 0ddd04c38..735f5ef40 100644
--- a/pimd/pim_upstream.c
+++ b/pimd/pim_upstream.c
@@ -850,7 +850,7 @@ int pim_upstream_evaluate_join_desired(struct pim_upstream *up)
struct pim_upstream *starup = up->parent;
int ret = 0;
- for (ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), node, ifp)) {
+ for (ALL_LIST_ELEMENTS_RO(vrf_iflist(pimg->vrf_id), node, ifp)) {
if (!ifp->info)
continue;
@@ -1400,7 +1400,7 @@ int pim_upstream_inherited_olist_decide(struct pim_upstream *up)
up->channel_oil =
pim_channel_oil_add(&up->sg, pim_ifp->mroute_vif_index);
- for (ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), node, ifp)) {
+ for (ALL_LIST_ELEMENTS_RO(vrf_iflist(pimg->vrf_id), node, ifp)) {
if (!ifp->info)
continue;