From 59f47eb0107517f417820d82db1226d011113039 Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Sat, 18 Dec 2021 10:34:31 -0800 Subject: zebra: expand pbr rule action for dataplane programming PBR rules are installed as match, action rules in most dataplanes. This requires the action to be resolved via a GW. And the GW to be subsequently resolved to {SMAC, DMAC}. Signed-off-by: Anuradha Karuppiah --- pbrd/pbr_vty.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pbrd') diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index b5946bd40d..d68bcfa160 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -848,9 +848,13 @@ static void vty_show_pbrms(struct vty *vty, } if (pbrms->src) - vty_out(vty, " SRC Match: %pFX\n", pbrms->src); + vty_out(vty, " SRC IP Match: %pFX\n", pbrms->src); if (pbrms->dst) - vty_out(vty, " DST Match: %pFX\n", pbrms->dst); + vty_out(vty, " DST IP Match: %pFX\n", pbrms->dst); + if (pbrms->src_prt) + vty_out(vty, " SRC Port Match: %u\n", pbrms->src_prt); + if (pbrms->dst_prt) + vty_out(vty, " DST Port Match: %u\n", pbrms->dst_prt); if (pbrms->dsfield & PBR_DSFIELD_DSCP) vty_out(vty, " DSCP Match: %u\n", (pbrms->dsfield & PBR_DSFIELD_DSCP) >> 2); -- cgit v1.2.3