diff options
| author | Mahdi Varasteh <mahdy.varasteh@gmail.com> | 2019-12-10 08:35:17 +0330 |
|---|---|---|
| committer | Mahdi Varasteh <mahdy.varasteh@gmail.com> | 2019-12-10 08:38:45 +0330 |
| commit | ced28861d497d346d28e51b85678a66d934b0482 (patch) | |
| tree | 3e1ef884867e1814a4600976f8cb7431b337cfac /lib/if.c | |
| parent | 0dcbec72aa2b508c194ec4391b6d821ea996fb08 (diff) | |
lib: fixes invalid running_entry when VRF is changed
we just unset the entry from old node and add it to the new one
Signed-off-by: Mahdi Varasteh <mahdy.varasteh@gmail.com>
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++; } } |
