summaryrefslogtreecommitdiffstats
path: root/bfdd/bfdd_cli.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-09-24 19:43:38 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2020-09-24 19:43:38 +0200
commit4ec8e74bd97e577fdc524088797acf94cbcb15fd (patch)
treef83a7391db3f136b80df34dd8951b9cdf7468460 /bfdd/bfdd_cli.c
parentbfdd: interface and vrf are mandatory leafs (diff)
downloadfrr-4ec8e74bd97e577fdc524088797acf94cbcb15fd.tar.xz
frr-4ec8e74bd97e577fdc524088797acf94cbcb15fd.zip
bfdd: use * as a placeholder for an empty interface name in northbound
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bfdd/bfdd_cli.c')
-rw-r--r--bfdd/bfdd_cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfdd/bfdd_cli.c b/bfdd/bfdd_cli.c
index d115684b1..ddec83397 100644
--- a/bfdd/bfdd_cli.c
+++ b/bfdd/bfdd_cli.c
@@ -127,7 +127,7 @@ DEFPY_YANG_NOSH(
"[interface='%s']", ifname);
else
slen += snprintf(xpath + slen, sizeof(xpath) - slen,
- "[interface='']");
+ "[interface='*']");
if (vrf)
snprintf(xpath + slen, sizeof(xpath) - slen, "[vrf='%s']", vrf);
else
@@ -185,7 +185,7 @@ DEFPY_YANG(
"[interface='%s']", ifname);
else
slen += snprintf(xpath + slen, sizeof(xpath) - slen,
- "[interface='']");
+ "[interface='*']");
if (vrf)
snprintf(xpath + slen, sizeof(xpath) - slen, "[vrf='%s']", vrf);
else
@@ -218,7 +218,7 @@ static void _bfd_cli_show_peer(struct vty *vty, struct lyd_node *dnode,
if (strcmp(vrf, VRF_DEFAULT_NAME))
vty_out(vty, " vrf %s", vrf);
- if (ifname[0])
+ if (strcmp(ifname, "*"))
vty_out(vty, " interface %s", ifname);
vty_out(vty, "\n");