]> 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>
Thu, 28 Jun 2018 09:08:58 +0000 (11:08 +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 9f75516106b647843a12e273618dda031534316d..f9f7882f6c23679effce6e186c4f5349c9a2f601 100644 (file)
@@ -1084,6 +1084,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)