aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/openconfig/openconfig_local_routing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/openconfig/openconfig_local_routing.c')
-rw-r--r--src/plugins/openconfig/openconfig_local_routing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/openconfig/openconfig_local_routing.c b/src/plugins/openconfig/openconfig_local_routing.c
index 5d18b52..6a3b5bd 100644
--- a/src/plugins/openconfig/openconfig_local_routing.c
+++ b/src/plugins/openconfig/openconfig_local_routing.c
@@ -381,7 +381,7 @@ oc_next_hop_state_cb(const char *xpath, sr_val_t **values, size_t *values_cnt,
VPP_IP4_PREFIX_STRING_LEN, &state);
rc |= get_xpath_key(index, (char*)xpath, "next-hop", "index",
- VPP_IP4_PREFIX_STRING_LEN, &state);
+ HOP_INDEX_SIZE, &state);
if (rc != 0)
return SR_ERR_INVAL_ARG;