Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException: No enum constant com.vmware.vim25.mox.VirtualMachineDeviceManager.VirtualNetworkAdapterType.VirtualE1000e #7

Open
alexZJR opened this issue Jul 27, 2017 · 0 comments

Comments

@alexZJR
Copy link

alexZJR commented Jul 27, 2017

When I used the method 'addNetworkAdapter()' in the sample class 'VmNetworkUtil', to create a vNIC for my Windows2012 VM, I received the IllegalArgumentException as the title mentioned.
I've looked into the Enum in VirtualMachineDeviceManager, and find the following value list:

    VirtualE1000("VirtualE1000"),
    VirtualE1000E("VirtualE1000e"),
    VirtualPCNet32("VirtualPCNet32"),
    VirtualSriovEthernetCard("VirtualSriovEthernetCard"),
    VirtualVmxnet("VirtualVmxnet"),
    VirtualVmxnet2("VirtualVmxnet2"),
    VirtualVmxnet3("VirtualVmxnet3"),
    Unknown("Unknown");

While the result returned by the method 'guestOsInfo.getSupportedEthernetCard()' contains 'VirtualE1000e', which is different from the 'VirtualE1000E ' in the Enum.

So, please kindly fix this issue via correct the 'VirtualE1000E ' into 'VirtualE1000e', or just add value for 'VirtualE1000e'...
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant