@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('port_id', metavar='<port_id>', help=_('Port ID.'))
def do_interface_detach(cs, args):
 server = _find_server(cs, args.server)
 res = server.interface_detach(args.port_id)
 if isinstance(res, dict):
  utils.print_dict(res)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( 'port_id' , metavar = '<port_id>' , help = _ ( 'Port ID.' ) ) def do_interface_detach ( cs , args ) : server = _find_server ( cs , args . server ) res = server . interface_detach ( args . port_id ) if isinstance ( res , dict ) : utils . print_dict ( res )
detach a network interface from a server .