]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: add show pbr iptable dscp information
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 19 Jun 2018 12:54:59 +0000 (14:54 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 2 Jul 2018 07:20:39 +0000 (09:20 +0200)
The iptable configured with dscp displays the dscp value configured.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_pbr.c

index 2e232f4db13b41a4bab18c27ed556bd0d44433f6..ea103f9b7b0ba6cd88994425686a95d107ee20f3 100644 (file)
@@ -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)