Skip to content

Commit a20aace

Browse files
Sateesh ChodapuneediVijayendra Bhamidipati
authored andcommitted
CS-9919 Support for Nexus Swiches (Cisco Vswitches)
Description: Temporarily skipping exception until vsmresponse parser doesn't throw malformed exceptions after adding port profile for native access.
1 parent 187d320 commit a20aace

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static Map<String, String> getValidatedVsmCredentials(VmwareContext conte
133133
if(vsmCredentials == null || vsmCredentials.size() != 3) {
134134
msg = "Failed to retrieve required credentials of Nexus VSM from database.";
135135
s_logger.error(msg);
136-
throw new Exception(msg);
136+
throw new Exception(msg);
137137
}
138138

139139
String vsmIp = vsmCredentials.containsKey("vsmip") ? vsmCredentials.get("vsmip") : null;
@@ -191,7 +191,10 @@ public static void createPortProfile(VmwareContext context, String ethPortProfil
191191
} catch (CloudRuntimeException e) {
192192
msg = "Failed to add vEthernet port profile " + networkName + ". Exception: " + e.toString();
193193
s_logger.error(msg);
194-
throw new CloudRuntimeException(msg);
194+
if(vlanId == null) {
195+
s_logger.warn("Ignoring exception : " + e.toString());
196+
// throw new CloudRuntimeException(msg);
197+
}
195198
}
196199
}
197200

0 commit comments

Comments
 (0)