diff options
Diffstat (limited to 'zebra/zebra_nb_config.c')
-rw-r--r-- | zebra/zebra_nb_config.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/zebra/zebra_nb_config.c b/zebra/zebra_nb_config.c index 4d3e4c63e..50caaa819 100644 --- a/zebra/zebra_nb_config.c +++ b/zebra/zebra_nb_config.c @@ -830,8 +830,8 @@ int lib_interface_zebra_ip_addrs_create(struct nb_cb_create_args *args) struct interface *ifp; struct prefix prefix; - // addr_family = yang_dnode_get_enum(dnode, "./address-family"); - yang_dnode_get_prefix(&prefix, args->dnode, "./ip-prefix"); + // addr_family = yang_dnode_get_enum(dnode, "address-family"); + yang_dnode_get_prefix(&prefix, args->dnode, "ip-prefix"); apply_mask(&prefix); switch (args->event) { @@ -870,7 +870,7 @@ int lib_interface_zebra_ip_addrs_destroy(struct nb_cb_destroy_args *args) struct prefix prefix; struct connected *ifc; - yang_dnode_get_prefix(&prefix, args->dnode, "./ip-prefix"); + yang_dnode_get_prefix(&prefix, args->dnode, "ip-prefix"); apply_mask(&prefix); switch (args->event) { @@ -1033,7 +1033,7 @@ int lib_interface_zebra_link_detect_modify(struct nb_cb_modify_args *args) bool link_detect; ifp = nb_running_get_entry(args->dnode, NULL, true); - link_detect = yang_dnode_get_bool(args->dnode, "./link-detect"); + link_detect = yang_dnode_get_bool(args->dnode, "link-detect"); if_linkdetect(ifp, link_detect); @@ -1049,7 +1049,7 @@ int lib_interface_zebra_link_detect_destroy(struct nb_cb_destroy_args *args) bool link_detect; ifp = nb_running_get_entry(args->dnode, NULL, true); - link_detect = yang_dnode_get_bool(args->dnode, "./link-detect"); + link_detect = yang_dnode_get_bool(args->dnode, "link-detect"); if_linkdetect(ifp, link_detect); @@ -1143,7 +1143,7 @@ int lib_interface_zebra_bandwidth_modify(struct nb_cb_modify_args *args) uint32_t bandwidth; ifp = nb_running_get_entry(args->dnode, NULL, true); - bandwidth = yang_dnode_get_uint32(args->dnode, "./bandwidth"); + bandwidth = yang_dnode_get_uint32(args->dnode, "bandwidth"); ifp->bandwidth = bandwidth; @@ -1465,7 +1465,7 @@ int lib_vrf_zebra_l3vni_id_modify(struct nb_cb_modify_args *args) * if zebra vrf already mapped to different vni id. */ pn_dnode = yang_dnode_get_parent(args->dnode, "vrf"); - vrfname = yang_dnode_get_string(pn_dnode, "./name"); + vrfname = yang_dnode_get_string(pn_dnode, "name"); zvrf = zebra_vrf_lookup_by_name(vrfname); if (!zvrf) { snprintf(args->errmsg, args->errmsg_len, |