Skip to content

Commit be91f16

Browse files
andriymoroz-mlnxlguohan
authored andcommitted
[ecnconfig] Fix db access from set to mod (sonic-net#169)
Signed-off-by: Andriy Moroz <[email protected]>
1 parent 49a86db commit be91f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ecnconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class EcnConfig(object):
6969
field = WRED_CONFIG_FIELDS[threshold]
7070
if self.verbose:
7171
print("Setting %s value to %s" % (field, value))
72-
self.db.set_entry(WRED_PROFILE_TABLE_NAME, profile, {field: value})
72+
self.db.mod_entry(WRED_PROFILE_TABLE_NAME, profile, {field: value})
7373

7474
def main():
7575
parser = argparse.ArgumentParser(description='Show and change ECN WRED configuration',

0 commit comments

Comments
 (0)