CLOUDSTACK-2145 : Failed to create guest nexus port profile while deploying the First VM on Nexus VMWARE Cluster

Additional stuff needs to be configured in guest port profile when Vnmc is present to provide firewall services.
The xml command used to configure port profile had issues with special characters in the input value for 'org' parameter.
This commit is contained in:
Koushik Das 2013-05-08 17:52:02 +05:30
parent 305f3cb8a5
commit 44f3f5eca5
1 changed files with 7 additions and 2 deletions

View File

@ -546,10 +546,15 @@ public class VsmCommand {
vmware.appendChild(portgroup);
portProf.appendChild(vmware);
// org root/%vdc%
// org %vdc%
// vservice node <Node Name> profile <Edge Security Profile Name in VNMC>
Element vdcValue = doc.createElement(s_paramvalue);
vdcValue.setAttribute("isKey", "true");
vdcValue.setTextContent(vdc);
Element org = doc.createElement("org");
org.appendChild(doc.createElement(vdc));
org.appendChild(doc.createElement("orgname"))
.appendChild(vdcValue);
portProf.appendChild(org);
String asaNodeName = "ASA_" + vlanid;