bgpd: flowspec pbr entries list display fix

the pbr entries list was not terminated with a carriage return and a
parenthesis.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
Philippe Guibert 2020-04-16 15:57:18 +02:00
parent 7d4b857955
commit 026b0e3b6f

View File

@ -376,11 +376,10 @@ void route_vty_out_flowspec(struct vty *vty, const struct prefix *p,
bpr->priority,
bpr->action->table_id);
}
if (list_began)
vty_out(vty, ")");
vty_out(vty, "\n");
}
if (!list_began)
if (list_began)
vty_out(vty, ")\n");
else
vty_out(vty, "\tnot installed in PBR\n");
}
}