diff options
Diffstat (limited to 'ripngd')
-rw-r--r-- | ripngd/ripngd.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index 120f46f0d..ef4e47473 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -2795,18 +2795,14 @@ static int ripng_vrf_enable(struct vrf *vrf) if (yang_module_find("frr-ripngd") && old_vrf_name) { struct lyd_node *ripng_dnode; - pthread_rwlock_wrlock(&running_config->lock); - { - ripng_dnode = yang_dnode_get( - running_config->dnode, - "/frr-ripngd:ripngd/instance[vrf='%s']/vrf", - old_vrf_name); - if (ripng_dnode) { - yang_dnode_change_leaf(ripng_dnode, vrf->name); - running_config->version++; - } + ripng_dnode = yang_dnode_get( + running_config->dnode, + "/frr-ripngd:ripngd/instance[vrf='%s']/vrf", + old_vrf_name); + if (ripng_dnode) { + yang_dnode_change_leaf(ripng_dnode, vrf->name); + running_config->version++; } - pthread_rwlock_unlock(&running_config->lock); } if (old_vrf_name) XFREE(MTYPE_RIPNG_VRF_NAME, old_vrf_name); |