[ovs-dev] [PATCH] datapath-windows: Fix warning from the powershell module

Eitan Eliahu eliahue at vmware.com
Mon May 18 20:55:20 UTC 2015


Acked-by: Eitan Eliahu <eliahue at vmware.com>

Thanks Alin.
Eitan

-----Original Message-----
From: dev [mailto:dev-bounces at openvswitch.org] On Behalf Of Alin Serdean
Sent: Monday, May 04, 2015 9:45 AM
To: dev at openvswitch.org
Subject: [ovs-dev] [PATCH] datapath-windows: Fix warning from the powershell module

This patch fixes the warning when datapath-windows/misc/OVS.psm1 is imported.

Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Reported-by: Hemanth Kumar Mantri <mantri at nutanix.com>
Reported-at: https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openvswitch_ovs-2Dissues_issues_69&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=CWsgHUxi6ExLXY798tmo3LJ4e3geGYp56lkcH-5cLCY&m=28OaspoKKvRf7sMd_OuP7WGNu0Y8Gm_uyKtsixeU1gA&s=bOxLzQumIA-Cglwy6ZOdkBhODOusq4Q40MFG982V3Lo&e=
---
 datapath-windows/misc/OVS.psm1 | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/datapath-windows/misc/OVS.psm1 b/datapath-windows/misc/OVS.psm1 index d6b6b00..a8ffcae 100644
--- a/datapath-windows/misc/OVS.psm1
+++ b/datapath-windows/misc/OVS.psm1
@@ -1,5 +1,5 @@
 <#
-Copyright 2014 Cloudbase Solutions Srl
+Copyright 2014, 2015 Cloudbase Solutions Srl
 
 Licensed under the Apache License, Version 2.0 (the "License");  you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@ function Set-VMNetworkAdapterOVSPort
             $retVal = $vsms.ModifyResourceSettings(@($sd.GetText(1)))
             try
             {
-                Check-WMIReturnValue $retVal
+                CheckWMIReturnValue $retVal
             }
             catch
             {
@@ -142,7 +142,7 @@ function Get-VMNetworkAdapterWithOVSPort
     }
 }
 
-function Check-WMIReturnValue($retVal)
+function CheckWMIReturnValue($retVal)
 {
     if ($retVal.ReturnValue -ne 0)
     {
@@ -206,3 +206,5 @@ function Set-VMNetworkAdapterOVSPortDirect
         $vnic[0] | Set-VMNetworkAdapterOVSPort -OVSPortName $OVSPortName
     }
 }
+
+Export-ModuleMember -function Set-*, Get-*
--
1.9.5.msysgit.0
_______________________________________________
dev mailing list
dev at openvswitch.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailman_listinfo_dev&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=CWsgHUxi6ExLXY798tmo3LJ4e3geGYp56lkcH-5cLCY&m=28OaspoKKvRf7sMd_OuP7WGNu0Y8Gm_uyKtsixeU1gA&s=TUgRV-w8Mpu1iAnHHa09XxMdrFF24pcdea9Mde0Gnw8&e= 


More information about the dev mailing list