Set default values only on the first start (#7735)
This commit is contained in:
parent
f547cadf28
commit
0c2521b936
@ -11,10 +11,12 @@ DEFAULT_ALPHA = '0.18'
|
||||
|
||||
|
||||
def enable_counter_group(db, name):
|
||||
info = {}
|
||||
info['FLEX_COUNTER_STATUS'] = 'enable'
|
||||
db.mod_entry("FLEX_COUNTER_TABLE", name, info)
|
||||
entry_info = db.get_entry("FLEX_COUNTER_TABLE", name)
|
||||
|
||||
if not entry_info:
|
||||
info = {}
|
||||
info['FLEX_COUNTER_STATUS'] = 'enable'
|
||||
db.mod_entry("FLEX_COUNTER_TABLE", name, info)
|
||||
|
||||
def enable_rates():
|
||||
# set the default interval for rates
|
||||
|
Reference in New Issue
Block a user