summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-12-10 10:03:01 -0300
committerGitHub <noreply@github.com>2019-12-10 10:03:01 -0300
commit531868034a9e9a9e23ec87313b0380dcc06f4544 (patch)
tree328e190699dff3fb129d1b83d7cf134e427d6f08 /lib/if.c
parente9613d32cc0faf47aa046ccbc88459499f2dd721 (diff)
parentced28861d497d346d28e51b85678a66d934b0482 (diff)
Merge pull request #5513 from m-varasteh/fix-running-entry-in-vrf-change
lib: fixes invalid running_entry when VRF is changed
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/if.c b/lib/if.c
index 20215640e6..31c1d9e8ba 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -262,7 +262,9 @@ void if_update_to_new_vrf(struct interface *ifp, vrf_id_t vrf_id)
"/frr-interface:lib/interface[name='%s'][vrf='%s']/vrf",
ifp->name, old_vrf->name);
if (if_dnode) {
+ nb_running_unset_entry(if_dnode->parent);
yang_dnode_change_leaf(if_dnode, vrf->name);
+ nb_running_set_entry(if_dnode->parent, ifp);
running_config->version++;
}
}