summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHiroki Shirokura <slank.dev@gmail.com>2021-03-22 01:04:06 +0100
committerMark Stapp <mjs@voltanet.io>2021-06-02 16:24:48 +0200
commit326591dcdbaf892b5f5e57d5a5d5d80d2e8937ab (patch)
tree915ac543f50f0f6292d320a03fade7140a9851e1 /lib
parentzebra: fix typo (diff)
downloadfrr-326591dcdbaf892b5f5e57d5a5d5d80d2e8937ab.tar.xz
frr-326591dcdbaf892b5f5e57d5a5d5d80d2e8937ab.zip
lib: fix json style to camel-case instead of underscores
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/srv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/srv6.c b/lib/srv6.c
index d59d2d75b..ceb769ef7 100644
--- a/lib/srv6.c
+++ b/lib/srv6.c
@@ -185,11 +185,11 @@ json_object *srv6_locator_json(const struct srv6_locator *loc)
json_object_string_add(jo_root, "prefix", str);
/* set function_bits_length */
- json_object_int_add(jo_root, "function_bits_length",
+ json_object_int_add(jo_root, "functionBitsLength",
loc->function_bits_length);
/* set status_up */
- json_object_boolean_add(jo_root, "status_up",
+ json_object_boolean_add(jo_root, "statusUp",
loc->status_up);
/* set chunks */