Reply to Message

View discussion in a popup

Replying to:
ccalvetTCC
Enthusiast
Enthusiast

Get-esxcli is a good option.

However it is also possible to use directly the API via PowerCLI.

To associate a new VMkernel interface to the default VMotion stack

The HostNetworkSystem has a method AddVirtualNic

This AddVirtualNic needs a HostVirtualNicSpec as a parameter.
The HostVirtualNicSpec has a property netStackInstanceKey

You can use there "vmotion" instead of "defaultTcpipStack"

It should also be possible to modify or add a new network stack.

The HostNetworkSystem has a method UpdateNetworkConfig

It needs as a parameter HostNetworkConfig

This object has a property netStackSpec of type HostNetworkConfigNetStackSpec

And in it netStackInstance of type HostNetStackInstance

Blog: http://thecrazyconsultant.com/ | Twitter: @ccalvetTCC
Reply
0 Kudos