VirtualBox

Ignore:
Timestamp:
Sep 25, 2012 9:25:42 AM (12 years ago)
Author:
vboxsync
Message:

VBoxShell: adapted to interface changes in r79727 (thanks Bertrand!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r43105 r43425  
    961961
    962962    print "  Use universal time [RTCUseUTC]: %s" %(asState(mach.RTCUseUTC))
    963     print "  HPET [hpetEnabled]: %s" %(asState(mach.hpetEnabled))
     963    print "  HPET [HPETEnabled]: %s" %(asState(mach.HPETEnabled))
    964964    if mach.audioAdapter.enabled:
    965965        print "  Audio [via audioAdapter]: chip %s; host driver %s" %(asEnumElem(ctx,"AudioControllerType", mach.audioAdapter.audioController), asEnumElem(ctx,"AudioDriverType",  mach.audioAdapter.audioDriver))
    966966    if mach.USBController.enabled:
    967         print "  USB [via USBController]: high speed %s" %(asState(mach.USBController.enabledEhci))
     967        print "  USB [via USBController]: high speed %s" %(asState(mach.USBController.enabledEHCI))
    968968    print "  CPU hotplugging [CPUHotPlugEnabled]: %s" %(asState(mach.CPUHotPlugEnabled))
    969969
    970     print "  Keyboard [keyboardHidType]: %s (%s)" %(asEnumElem(ctx,"KeyboardHidType", mach.keyboardHidType), mach.keyboardHidType)
    971     print "  Pointing device [pointingHidType]: %s (%s)" %(asEnumElem(ctx,"PointingHidType", mach.pointingHidType), mach.pointingHidType)
     970    print "  Keyboard [keyboardHIDType]: %s (%s)" %(asEnumElem(ctx,"KeyboardHIDType", mach.keyboardHIDType), mach.keyboardHIDType)
     971    print "  Pointing device [pointingHIDType]: %s (%s)" %(asEnumElem(ctx,"PointingHIDType", mach.pointingHIDType), mach.pointingHIDType)
    972972    print "  Last changed [n/a]: " + time.asctime(time.localtime(long(mach.lastStateChange)/1000))
    973973    # OSE has no VRDE
     
    978978    print
    979979    print colCat(ctx,"  I/O subsystem info:")
    980     print "   Cache enabled [ioCacheEnabled]: %s" %(asState(mach.ioCacheEnabled))
    981     print "   Cache size [ioCacheSize]: %dM" %(mach.ioCacheSize)
     980    print "   Cache enabled [IOCacheEnabled]: %s" %(asState(mach.IOCacheEnabled))
     981    print "   Cache size [IOCacheSize]: %dM" %(mach.IOCacheSize)
    982982
    983983    controllers = ctx['global'].getArray(mach, 'storageControllers')
     
    15021502   print colCat(ctx,"OS:");
    15031503   print "  %s (%s)" %(host.operatingSystem, host.OSVersion)
    1504    if host.Acceleration3DAvailable:
     1504   if host.acceleration3DAvailable:
    15051505       print colCat(ctx,"3D acceleration available")
    15061506   else:
     
    26832683    yesno = {0: 'off', 1: 'on'}
    26842684    if len(args) == 1:
    2685         msg = 'passdomain:%s, proxy:%s, usehostresolver:%s' % (yesno[int(nat.dnsPassDomain)], yesno[int(nat.dnsProxy)], yesno[int(nat.dnsUseHostResolver)])
     2685        msg = 'passdomain:%s, proxy:%s, usehostresolver:%s' % (yesno[int(nat.DNSPassDomain)], yesno[int(nat.DNSProxy)], yesno[int(nat.DNSUseHostResolver)])
    26862686        return (0, [msg])
    26872687    else:
    2688         nat.dnsPassDomain = 'passdomain' in args
    2689         nat.dnsProxy =  'proxy' in args
    2690         nat.dnsUseHostResolver =  'usehostresolver' in args
     2688        nat.DNSPassDomain = 'passdomain' in args
     2689        nat.DNSProxy =  'proxy' in args
     2690        nat.DNSUseHostResolver =  'usehostresolver' in args
    26912691    return (0, None)
    26922692
     
    26992699    """
    27002700    if len(args) == 1:
    2701         server = nat.tftpNextServer
     2701        server = nat.TFTPNextServer
    27022702        if server is None:
    27032703            server = nat.network
     
    27092709            (a,b,c,d) = server.split('.')
    27102710            server = '%d.%d.%d.4' % (a,b,c)
    2711         prefix = nat.tftpPrefix
     2711        prefix = nat.TFTPPrefix
    27122712        if prefix is None:
    27132713            prefix = '%s/TFTP/' % (ctx['vb'].homeFolder)
    2714         bootfile = nat.tftpBootFile
     2714        bootfile = nat.TFTPBootFile
    27152715        if bootfile is None:
    27162716            bootfile = '%s.pxe' % (mach.name)
     
    27242724            print natTftp.__doc__
    27252725            return (1, None)
    2726         if cmd == 'prefix': nat.tftpPrefix = args[2]
    2727         elif cmd == 'bootfile': nat.tftpBootFile = args[2]
    2728         elif cmd == 'server': nat.tftpNextServer = args[2]
     2726        if cmd == 'prefix': nat.TFTPPrefix = args[2]
     2727        elif cmd == 'bootfile': nat.TFTPBootFile = args[2]
     2728        elif cmd == 'server': nat.TFTPNextServer = args[2]
    27292729        else:
    27302730            print "invalid cmd:", cmd
     
    28452845
    28462846    adapter = mach.getNetworkAdapter(nicnum)
    2847     natEngine = adapter.natDriver
     2847    natEngine = adapter.NATEngine
    28482848    (rc, report) = natcommands[func](ctx, mach, nicnum, natEngine, cmdargs)
    28492849    if rosession == 0:
     
    31013101
    31023102def lspci(ctx, console):
    3103     assigned = ctx['global'].getArray(console.machine, 'pciDeviceAssignments')
     3103    assigned = ctx['global'].getArray(console.machine, 'PCIDeviceAssignments')
    31043104    for a in assigned:
    31053105        if a.isPhysicalDevice:
    31063106            print "%s: assigned host device %s guest %s" %(colDev(ctx, a.name), pciAddr(ctx, a.hostAddress), pciAddr(ctx, a.guestAddress))
    31073107
    3108     atts = ctx['global'].getArray(console, 'attachedPciDevices')
     3108    atts = ctx['global'].getArray(console, 'attachedPCIDevices')
    31093109    for a in atts:
    31103110        if a.isPhysicalDevice:
     
    31513151    else:
    31523152        guestaddr = hostaddr
    3153     cmdClosedVm(ctx, mach, lambda ctx,mach,a: mach.attachHostPciDevice(hostaddr, guestaddr, True))
     3153    cmdClosedVm(ctx, mach, lambda ctx,mach,a: mach.attachHostPCIDevice(hostaddr, guestaddr, True))
    31543154    return 0
    31553155
     
    31663166        return 0
    31673167
    3168     cmdClosedVm(ctx, mach, lambda ctx,mach,a: mach.detachHostPciDevice(hostaddr))
     3168    cmdClosedVm(ctx, mach, lambda ctx,mach,a: mach.detachHostPCIDevice(hostaddr))
    31693169    return 0
    31703170
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette