From 5e44f18ff124df9338ffe0c28611736fa1ecadd7 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 25 Mar 2018 21:18:56 -0400 Subject: [PATCH] pbrd: Do not use vrf_frame for pbrms display When displaying a pbr map sequence for a show run do not use the vty_frame construct. We should display the config even if we do not have much to display. Ticket: CM-20196 Signed-off-by: Donald Sharp --- pbrd/pbr_vty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index f01286717c..e19bbcb633 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -552,7 +552,7 @@ static int pbr_vty_map_config_write_sequence(struct vty *vty, { char buff[PREFIX_STRLEN]; - vty_frame(vty, "pbr-map %s seq %u\n", pbrm->name, pbrms->seqno); + vty_out(vty, "pbr-map %s seq %u\n", pbrm->name, pbrms->seqno); if (pbrms->src) vty_out(vty, " match src-ip %s\n", @@ -570,7 +570,7 @@ static int pbr_vty_map_config_write_sequence(struct vty *vty, nexthop_group_write_nexthop(vty, pbrms->nhg->nexthop); } - vty_endframe(vty, "!\n"); + vty_out(vty, "!\n"); return 1; } -- 2.39.5