diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2023-01-26 14:56:04 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2023-01-27 12:01:20 +0100 |
| commit | ae08de9f427ec6b71299ae2786cff19b98d0468f (patch) | |
| tree | eac8b492c20355de2a6e1e787cb00f0abfefb04f /isisd/isis_cli.c | |
| parent | c84e51870940311bb6ec67d8b192da1ce32cba8f (diff) | |
*: fix non-const northbound XPath format strings
Passing a pre-formatted buffer in these places needs a `"%s"` in front
so it doesn't get formatted twice.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_cli.c')
| -rw-r--r-- | isisd/isis_cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_cli.c b/isisd/isis_cli.c index 3650984f1b..cb607deb23 100644 --- a/isisd/isis_cli.c +++ b/isisd/isis_cli.c @@ -61,7 +61,7 @@ DEFPY_YANG_NOSH(router_isis, router_isis_cmd, vrf_name); nb_cli_enqueue_change(vty, ".", NB_OP_CREATE, NULL); - ret = nb_cli_apply_changes(vty, base_xpath); + ret = nb_cli_apply_changes(vty, "%s", base_xpath); if (ret == CMD_SUCCESS) VTY_PUSH_XPATH(ISIS_NODE, base_xpath); @@ -1427,7 +1427,7 @@ DEFPY_YANG( overload ? "true" : "false"); } - return nb_cli_apply_changes(vty, base_xpath); + return nb_cli_apply_changes(vty, "%s", base_xpath); } void cli_show_isis_mt_ipv4_multicast(struct vty *vty, |
