Remove ability for client to set router secondary (must always set
primary)
This commit is contained in:
@ -158,22 +158,6 @@ def cli_router():
|
||||
pass
|
||||
|
||||
|
||||
###############################################################################
|
||||
# pvc router secondary
|
||||
###############################################################################
|
||||
@click.command(name='secondary', short_help='Set a router in secondary status.')
|
||||
@click.argument(
|
||||
'router'
|
||||
)
|
||||
def router_secondary(router):
|
||||
"""
|
||||
Take ROUTER out of primary mode handling gateways and into secondary mode.
|
||||
"""
|
||||
|
||||
zk_conn = pvc_common.startZKConnection(zk_host)
|
||||
retcode, retmsg = pvc_router.secondary_router(zk_conn, router)
|
||||
cleanup(retcode, retmsg, zk_conn)
|
||||
|
||||
###############################################################################
|
||||
# pvc router primary
|
||||
###############################################################################
|
||||
@ -890,7 +874,6 @@ cli_node.add_command(node_unflush)
|
||||
cli_node.add_command(node_info)
|
||||
cli_node.add_command(node_list)
|
||||
|
||||
cli_router.add_command(router_secondary)
|
||||
cli_router.add_command(router_primary)
|
||||
cli_router.add_command(router_info)
|
||||
cli_router.add_command(router_list)
|
||||
|
Reference in New Issue
Block a user