[ovs-git] [openvswitch/ovs] df5bd0: datapath-windows: Add WMI Script that updates Hype...

GitHub noreply at github.com
Mon Sep 29 15:45:47 UTC 2014

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: df5bd0d2b573dca5e1a6743d3b44dba19fbb4c6d
  Author: Alin Serdean <aserdean at cloudbasesolutions.com>
  Date:   2014-09-29 (Mon, 29 Sep 2014)

  Changed paths:
    A datapath-windows/misc/OVS.psm1

  Log Message:
  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.

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 at cloudbasesolutions.com>
Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Tested-by: Nithin Raju <nithin at vmware.com>
Acked-by: Nithin Raju <nithin at vmware.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>

More information about the git mailing list