summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-01-29 21:50:26 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2024-01-31 01:20:13 +0100
commit4317c8ffa6675c9f91b710c7c75739706e1edfef (patch)
treecac992fbf82d4f96cb323a2f4746c9c870dec17d /lib/vty.c
parentyang: add more ietf models (diff)
downloadfrr-4317c8ffa6675c9f91b710c7c75739706e1edfef.tar.xz
frr-4317c8ffa6675c9f91b710c7c75739706e1edfef.zip
mgmtd: add support for with-defaults parameter to get-data
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/vty.c b/lib/vty.c
index ea35c541e..c082c8385 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -4102,7 +4102,8 @@ int vty_mgmt_send_get_req(struct vty *vty, bool is_config,
}
int vty_mgmt_send_get_data_req(struct vty *vty, LYD_FORMAT result_type,
- uint8_t flags, const char *xpath)
+ uint8_t flags, uint8_t defaults,
+ const char *xpath)
{
LYD_FORMAT intern_format = result_type;
@@ -4110,7 +4111,7 @@ int vty_mgmt_send_get_data_req(struct vty *vty, LYD_FORMAT result_type,
if (mgmt_fe_send_get_data_req(mgmt_fe_client, vty->mgmt_session_id,
vty->mgmt_req_id, intern_format, flags,
- xpath)) {
+ defaults, xpath)) {
zlog_err("Failed to send GET-DATA to MGMTD session-id: %" PRIu64
" req-id %" PRIu64 ".",
vty->mgmt_session_id, vty->mgmt_req_id);