diff options
author | Anuradha Karuppiah <anuradhak@nvidia.com> | 2021-12-18 19:34:31 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-06-27 13:56:55 +0200 |
commit | 59f47eb0107517f417820d82db1226d011113039 (patch) | |
tree | 8c064b7e198417fcc80134338f5cea43e082b5e9 /pbrd | |
parent | zebra: add support for maintaining local neigh entries (diff) | |
download | frr-59f47eb0107517f417820d82db1226d011113039.tar.xz frr-59f47eb0107517f417820d82db1226d011113039.zip |
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.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index b5946bd40..d68bcfa16 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); |