def unset_adj_metric(cli_opts, node, interface, yes): # noqa: B902 """ Unset previously set custom metric value on the node. """ question_str = "Are you sure to unset metric " "for adjacency {} {} ?".format( node, interface) if not utils.yesno(question_str, yes): return lm.UnsetAdjMetricCmd(cli_opts).run(node, interface, yes) nodes = parse_nodes(cli_opts, "") kvstore.ShowAdjNodeCmd(cli_opts).run(nodes, node, interface)
def unset_adj_metric(cli_opts, node, interface, yes): # noqa: B902 ''' Unset previously set custom metric value on the node. ''' question_str = 'Are you sure to unset metric ' \ 'for adjacency {} {} ?'.format(node, interface) if not utils.yesno(question_str, yes): return lm.UnsetAdjMetricCmd(cli_opts).run(node, interface, yes) nodes = parse_nodes(cli_opts.host, '', cli_opts.lm_cmd_port) kvstore.ShowAdjNodeCmd(cli_opts).run(nodes, node, interface)