@utils.arg('--host-only', dest='host_only', metavar='<0|1>', nargs='?', type=int, const=1, default=0)
@utils.arg('--project-only', dest='project_only', metavar='<0|1>', nargs='?', type=int, const=1, default=0)
@utils.arg('network', metavar='<network>', help=_('UUID of network.'))
@deprecated_network
def do_network_disassociate(cs, args):
 if args.host_only:
  cs.networks.disassociate(args.network, True, False)
 elif args.project_only:
  cs.networks.disassociate(args.network, False, True)
 else:
  cs.networks.disassociate(args.network, True, True)

@ utils . arg ( '--host-only' , dest = 'host_only' , metavar = '<0|1>' , nargs = '?' , type = int , const = 1 , default = 0 ) @ utils . arg ( '--project-only' , dest = 'project_only' , metavar = '<0|1>' , nargs = '?' , type = int , const = 1 , default = 0 ) @ utils . arg ( 'network' , metavar = '<network>' , help = _ ( 'UUID of network.' ) ) @ deprecated_network def do_network_disassociate ( cs , args ) : if args . host_only : cs . networks . disassociate ( args . network , True , False ) elif args . project_only : cs . networks . disassociate ( args . network , False , True ) else : cs . networks . disassociate ( args . network , True , True )
disassociate host and/or project from the given network .