Skip to content

Commit

Permalink
enable/disable warm_restart for teamd docker (sonic-net#396)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <[email protected]>
  • Loading branch information
lguohan authored Nov 29, 2018
1 parent a5b51eb commit db550e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,14 +564,14 @@ def warm_restart(ctx, redis_unix_socket_path):
pass

@warm_restart.command('enable')
@click.argument('module', metavar='<module>', default='system', required=False, type=click.Choice(["system", "swss", "bgp"]))
@click.argument('module', metavar='<module>', default='system', required=False, type=click.Choice(["system", "swss", "bgp", "teamd"]))
@click.pass_context
def warm_restart_enable(ctx, module):
db = ctx.obj['db']
db.mod_entry('WARM_RESTART', module, {'enable': 'true'})

@warm_restart.command('disable')
@click.argument('module', metavar='<module>', default='system', required=False, type=click.Choice(["system", "swss", "bgp"]))
@click.argument('module', metavar='<module>', default='system', required=False, type=click.Choice(["system", "swss", "bgp", "teamd"]))
@click.pass_context
def warm_restart_enable(ctx, module):
db = ctx.obj['db']
Expand Down

0 comments on commit db550e0

Please sign in to comment.