diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-12-10 10:03:01 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-10 10:03:01 -0300 |
| commit | 531868034a9e9a9e23ec87313b0380dcc06f4544 (patch) | |
| tree | 328e190699dff3fb129d1b83d7cf134e427d6f08 /lib/if.c | |
| parent | e9613d32cc0faf47aa046ccbc88459499f2dd721 (diff) | |
| parent | ced28861d497d346d28e51b85678a66d934b0482 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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++; } } |
