]> git.proxmox.com Git - mirror_frr.git/commitdiff
pbrd: Do not use vrf_frame for pbrms display
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 26 Mar 2018 01:18:56 +0000 (21:18 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 6 Apr 2018 17:22:43 +0000 (13:22 -0400)
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 <sharpd@cumulusnetworks.com>
pbrd/pbr_vty.c

index f01286717cc7d105cbbc57083882462ea04f8da3..e19bbcb633f62acccb189fc8cf1561da5498429b 100644 (file)
@@ -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;
 }