From 38da7f3d4e6b39a3771ceffdf0a8e4fc727c9228 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Wed, 22 May 2019 11:20:27 -0700 Subject: [PATCH] [acl_loader]: Add policer attribute in show mirror_session command (#538) Signed-off-by: Shu0T1an ChenG --- acl_loader/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acl_loader/main.py b/acl_loader/main.py index 611229fe7ee6..1610e00b9294 100644 --- a/acl_loader/main.py +++ b/acl_loader/main.py @@ -532,7 +532,7 @@ def show_session(self, session_name): :param session_name: Optional. Mirror session name. Filter sessions by specified name. :return: """ - header = ("Name", "Status", "SRC IP", "DST IP", "GRE", "DSCP", "TTL", "Queue") + header = ("Name", "Status", "SRC IP", "DST IP", "GRE", "DSCP", "TTL", "Queue", "Policer") data = [] for key, val in self.get_sessions_db_info().iteritems(): @@ -541,7 +541,7 @@ def show_session(self, session_name): data.append([key, val["status"], val["src_ip"], val["dst_ip"], val.get("gre_type", ""), val.get("dscp", ""), - val.get("ttl", ""), val.get("queue", "")]) + val.get("ttl", ""), val.get("queue", ""), val.get("policer", "")]) print(tabulate.tabulate(data, headers=header, tablefmt="simple", missingval=""))