Exemple #1
0
 def _disable(cli_opts, ports):
     ''' Disable given [port(s)] '''
     port.PortSetStatusCmd(cli_opts).run(ports, False)
Exemple #2
0
 def _disable(cli_opts, ports):  # noqa: B902
     """ Disable port state for given [port(s)] """
     port.PortSetStatusCmd(cli_opts).run(ports, False)
Exemple #3
0
 def _enable(cli_opts, ports):
     ''' Enable given [port(s)] '''
     port.PortSetStatusCmd(cli_opts).run(ports, True)
Exemple #4
0
 def _enable(cli_opts, ports):  # noqa: B902
     """ Enable port state for given [port(s)] """
     port.PortSetStatusCmd(cli_opts).run(ports, True)