summaryrefslogtreecommitdiff
path: root/datapath-windows/misc
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2015-05-04 16:44:49 +0000
committerGurucharan Shetty <gshetty@nicira.com>2015-05-19 07:46:09 -0700
commit2fe3020f5cb62033218c273b7c92ed9203983d62 (patch)
treec62e2cd25a5dc9e2ad6123230942834e417009d6 /datapath-windows/misc
parent8aaa125dab663595329063560b33fe7d62839b7a (diff)
downloadopenvswitch-2fe3020f5cb62033218c273b7c92ed9203983d62.tar.gz
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@cloudbasesolutions.com> Reported-by: Hemanth Kumar Mantri <mantri@nutanix.com> Reported-at: https://github.com/openvswitch/ovs-issues/issues/69 Acked-by: Eitan Eliahu <eliahue@vmware.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'datapath-windows/misc')
-rw-r--r--datapath-windows/misc/OVS.psm18
1 files changed, 5 insertions, 3 deletions
diff --git a/datapath-windows/misc/OVS.psm1 b/datapath-windows/misc/OVS.psm1
index d6b6b0047..a8ffcaefd 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-*