summaryrefslogtreecommitdiff
path: root/pbrd
diff options
context:
space:
mode:
authorAnuradha Karuppiah <anuradhak@nvidia.com>2021-12-18 10:34:31 -0800
committerDonald Sharp <sharpd@nvidia.com>2022-06-27 07:56:55 -0400
commit59f47eb0107517f417820d82db1226d011113039 (patch)
tree8c064b7e198417fcc80134338f5cea43e082b5e9 /pbrd
parent4cf4fad15307fab9e21dd228fc7f80be4da801c2 (diff)
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 <anuradhak@nvidia.com>
Diffstat (limited to 'pbrd')
-rw-r--r--pbrd/pbr_vty.c8
1 files changed, 6 insertions, 2 deletions
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);