Skip to content

Commit

Permalink
change _update_config_db to _update_config_db_flex_counter_table
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomibitton authored Aug 19, 2021
1 parent ebba4a6 commit c365c34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions counterpoll/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def show():

click.echo(tabulate(data, headers=header, tablefmt="simple", missingval=""))

def _update_config_db(status, filename):
def _update_config_db_flex_counter_table(status, filename):
""" Update counter configuration in config_db file """
with open(filename) as config_db_file:
config_db = json.load(config_db_file)
Expand Down Expand Up @@ -308,16 +308,16 @@ def config_db():
@click.argument("filename", default="/etc/sonic/config_db.json", type=click.Path(exists=True))
def enable(filename):
""" Enable counter configuration in config_db file """
_update_config_db("enable", filename)
_update_config_db_flex_counter_table("enable", filename)

@config_db.command()
@click.argument("filename", default="/etc/sonic/config_db.json", type=click.Path(exists=True))
def disable(filename):
""" Disable counter configuration in config_db file """
_update_config_db("disable", filename)
_update_config_db_flex_counter_table("disable", filename)

@config_db.command()
@click.argument("filename", default="/etc/sonic/config_db.json", type=click.Path(exists=True))
def delay(filename):
""" Delay counters in config_db file """
_update_config_db("delay", filename)
_update_config_db_flex_counter_table("delay", filename)

0 comments on commit c365c34

Please sign in to comment.