From ccf48116200c8406b73f84372b54504c5eebf63b Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Tue, 19 Jun 2018 14:54:59 +0200 Subject: [PATCH] zebra: add show pbr iptable dscp information The iptable configured with dscp displays the dscp value configured. Signed-off-by: Philippe Guibert --- zebra/zebra_pbr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zebra/zebra_pbr.c b/zebra/zebra_pbr.c index 2e232f4db1..ea103f9b7b 100644 --- a/zebra/zebra_pbr.c +++ b/zebra/zebra_pbr.c @@ -1081,6 +1081,11 @@ static int zebra_pbr_show_iptable_walkcb(struct hash_backet *backet, void *arg) vty_out(vty, "\t tcpflags [%s/%s]\n", tcp_flag_str, tcp_flag_mask_str); } + if (iptable->filter_bm & (MATCH_DSCP_SET | MATCH_DSCP_INVERSE_SET)) { + vty_out(vty, "\t dscp %s %d\n", + iptable->filter_bm & MATCH_DSCP_INVERSE_SET ? + "not" : "", iptable->dscp_value); + } ret = hook_call(zebra_pbr_iptable_wrap_script_get_stat, zns, iptable, &pkts, &bytes); if (ret && pkts > 0) -- 2.39.5