From 8c6840e4895ba8613c63fc549f9a9cf70db57d3c Mon Sep 17 00:00:00 2001 From: Rajesh Battala Date: Thu, 21 Nov 2013 14:29:54 +0530 Subject: [PATCH] Modified GetExternalVirtSwitch to take the switchname param and return the same or default one --- .../hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs index c99c3051947..0a3f008750b 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs @@ -1168,7 +1168,7 @@ namespace HypervResource /// With V2 API, there are two kinds of lan endpoint: one on the computer system and one on the switch /// e.g. Msvm_ExternalEthernetPort -> LANEndpoint -> LANEdnpoint -> EthernetSwitchPort -> VirtualEthernetSwitch /// - public static VirtualEthernetSwitch GetExternalVirtSwitch() + public static VirtualEthernetSwitch GetExternalVirtSwitch(String vSwitchName) { // Work back from the first *bound* external NIC we find. var externNICs = ExternalEthernetPort.GetInstances("IsBound = TRUE");