Skip to content

Commit

Permalink
[acl_loader]: Add policer attribute in show mirror_session command (#538
Browse files Browse the repository at this point in the history
)

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
  • Loading branch information
Shuotian Cheng authored May 22, 2019
1 parent f95ff00 commit 38da7f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acl_loader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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=""))

Expand Down

0 comments on commit 38da7f3

Please sign in to comment.