datapath-windows: Add WMI Script that updates Hyper-V friendly port names.
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Thu, 25 Sep 2014 06:18:19 +0000 (06:18 +0000)
committerBen Pfaff <blp@nicira.com>
Mon, 29 Sep 2014 15:45:33 +0000 (08:45 -0700)
commitdf5bd0d2b573dca5e1a6743d3b44dba19fbb4c6d
treed90c9a9a7ac48640aeaf5d893a0abcfc53b7082c
parent531bee45687eb76a8f62b5e64ecd24254fb45c0e
datapath-windows: Add WMI Script that updates Hyper-V friendly port names.

The following script leverage's the advantages of WMI infrastructure
offered in Hyper-V.

This scripts allows the user to change the
Msvm_EthernetPortAllocationSettingData property of a VM network adapter
connected to a Hyper-V Virtual Switch.

Usage:
import-module .\OVS.psm1
$vnic = Get-VMNetworkAdapter VM1
Connect-VMNetworkAdapter -VMNetworkAdapter $vnic -SwitchName external
$vnic | Set-VMNetworkAdapterOVSPort -OVSPortName ovs-port-1

VM1 - is a VM on top of a Hyper-V
external - is a Hyper-V Virtual Switch

Signed-off-by: Alessandro Pilotti <apilotti@cloudbasesolutions.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Tested-by: Nithin Raju <nithin@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/misc/OVS.psm1 [new file with mode: 0644]