Skip to content

Commit 0be6eb1

Browse files
author
Tyler Li
committed
2 parents d4fe120 + b19b125 commit 0be6eb1

File tree

29 files changed

+6161
-4159
lines changed

29 files changed

+6161
-4159
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ If this is a bug fix, make sure your description includes "closes #xxxx",
88
"fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related
99
issue when the PR is merged
1010
11+
If you are modifying or removing an existing 'show', 'config' or 'sonic-clear'
12+
subcommand, or you are adding a new subcommand, please make sure you also
13+
update the Command Line Reference Guide (doc/Command-Reference.md) to reflect
14+
your changes.
15+
1116
Please provide the following information:
1217
-->
1318

acl_loader/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ class AclLoader(object):
4848
ACL_RULE = "ACL_RULE"
4949
ACL_TABLE_TYPE_MIRROR = "MIRROR"
5050
ACL_TABLE_TYPE_CTRLPLANE = "CTRLPLANE"
51-
MIRROR_SESSION = "MIRROR_SESSION"
51+
CFG_MIRROR_SESSION_TABLE = "MIRROR_SESSION"
52+
STATE_MIRROR_SESSION_TABLE = "MIRROR_SESSION_TABLE"
5253
POLICER = "POLICER"
5354
SESSION_PREFIX = "everflow"
5455

@@ -130,9 +131,9 @@ def read_sessions_info(self):
130131
Read MIRROR_SESSION table from configuration database
131132
:return:
132133
"""
133-
self.sessions_db_info = self.configdb.get_table(self.MIRROR_SESSION)
134+
self.sessions_db_info = self.configdb.get_table(self.CFG_MIRROR_SESSION_TABLE)
134135
for key in self.sessions_db_info.keys():
135-
state_db_info = self.statedb.get_all(self.statedb.STATE_DB, "{}|{}".format(self.MIRROR_SESSION, key))
136+
state_db_info = self.statedb.get_all(self.statedb.STATE_DB, "{}|{}".format(self.STATE_MIRROR_SESSION_TABLE, key))
136137
if state_db_info:
137138
status = state_db_info.get("status", "inactive")
138139
else:

0 commit comments

Comments
 (0)