We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3749f5e commit fab84fbCopy full SHA for fab84fb
1 file changed
scripts/ecnconfig
@@ -198,7 +198,7 @@ class EcnQ(object):
198
port_table = self.config_db.get_table(DEVICE_NEIGHBOR_TABLE_NAME)
199
self.ports_key = port_table.keys()
200
201
- self.ports_key.sort(key = lambda k: int(k[8:]))
+ self.ports_key = sorted(self.ports_key, key = lambda k: int(k[8:]))
202
203
def set(self, enable):
204
if os.geteuid() != 0:
0 commit comments