Lines Matching refs:adapter

1657         raise Exception("Unknown adapter type: "+natype)
1662 print "usage: portForward <vm> <adapter> <hostPort> <guestPort>"
1674 adapter = mach.getNetworkAdapter(adapterNum)
1675 adapterType = getAdapterType(ctx, adapter.adapterType)
1679 config = config + str(adapter.slot) +"/LUN#0/Config/" + profile_name
2894 print 'please specify adapter num %d isn\'t in range [0-%d]' % (args[2], ctx['vb'].systemProperties.getMaxNetworkAdapters(mach.chipsetType))
2902 # use NAT func for every adapter on machine.
2911 adapter = mach.getNetworkAdapter(nicnum)
2912 natEngine = adapter.NATEngine
2924 def nicSwitchOnOff(adapter, attr, args):
2927 r = yesno[int(adapter.__getattr__(attr))]
2934 adapter.__setattr__(attr, yesno[args[1]])
2937 def nicTraceSubCmd(ctx, vm, nicnum, adapter, args):
2941 (rc, r) = nicSwitchOnOff(adapter, 'traceEnabled', args)
2943 r = '%s file:%s' % (r, adapter.traceFile)
2946 adapter.traceFile = args[2]
2949 def nicLineSpeedSubCmd(ctx, vm, nicnum, adapter, args):
2951 r = '%d kbps'% (adapter.lineSpeed)
2957 adapter.lineSpeed = int(args[1])
2960 def nicCableSubCmd(ctx, vm, nicnum, adapter, args):
2964 return nicSwitchOnOff(adapter, 'cableConnected', args)
2966 def nicEnableSubCmd(ctx, vm, nicnum, adapter, args):
2970 return nicSwitchOnOff(adapter, 'enabled', args)
2972 def nicTypeSubCmd(ctx, vm, nicnum, adapter, args):
2979 if str(adapter.adapterType) == str(nictypes[key]):
2987 adapter.adapterType = nictypes[args[1]]
2990 def nicAttachmentSubCmd(ctx, vm, nicnum, adapter, args):
2998 ctx['global'].constants.NetworkAttachmentType_Bridged: ('Bridged', adapter.bridgedInterface),
2999 ctx['global'].constants.NetworkAttachmentType_Internal: ('Internal', adapter.internalNetwork),
3000 ctx['global'].constants.NetworkAttachmentType_HostOnly: ('HostOnly', adapter.hostOnlyInterface),
3005 if type(adapter.attachmentType) != types.IntType:
3006 t = str(adapter.attachmentType)
3008 t = adapter.attachmentType
3023 'p': lambda: adapter.__setattr__('bridgedInterface', args[2]),
3027 'p': lambda: adapter.__setattr__('internalNetwork', args[2]),
3031 'p': lambda: adapter.__setattr__('hostOnlyInterface', args[2]),
3046 adapter.attachmentType = nicAttachmentType[args[1]]['f']()
3081 print 'please specify adapter num %d isn\'t in range [0-%d]'% (args[2], ctx['vb'].systemProperties.getMaxNetworkAdapters(vm.chipsetType))
3089 adapter = vm.getNetworkAdapter(nicnum)
3090 (rc, report) = niccomand[func](ctx, vm, nicnum, adapter, cmdargs)
3284 'portForward':['Setup permanent port forwarding for a VM, takes adapter number host port and guest port: portForward Win32 0 8080 80', portForwardCmd, 0],
3328 'nic' : ['Network adapter management', nicCmd, 0],