Skip to content

Commit 238ed8b

Browse files
authored
Updated XML for virtual service and poolgroup object. (#93)
1 parent 5fda0a0 commit 238ed8b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

o11nplugin-vro-package/src/main/resources/ScriptModule/com/vmware/actions/createVRAPoolGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
var HMref ="/api/healthmonitor?name="+HealthMonitorName;
5151
firstPoolObject.addHealthMonitorRefsItem(HMref);
5252
System.log("firstPoolObject : "+firstPoolObject);
53-
workflowRuntime.vroClient.addObject(firstPoolObject, workflowRuntime.workflowId);
53+
workflowRuntime.getAviVroClient().addObject(firstPoolObject, workflowRuntime.workflowId);
5454
secondPoolObject = new AviPool() ;
5555
secondPoolObject.setCloudRef("/api/cloud?name="+ServerCloud);
5656
secondPoolObject.setTenantRef("/api/tenant?name="+Tenant);

o11nplugin-vro-package/src/main/resources/ScriptModule/com/vmware/actions/createVirtualServiceObj.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<dunes-script-module name="createVirtualServiceObj"
3-
result-type="Avi:AviVroClient" api-version="6.0.0"
3+
result-type="Avi:WorkflowRuntime" api-version="6.0.0"
44
id="d84d0b9a-93f0-4339-8db7-db20f3c43123" version="1.1.5"
55
allowed-operations="vfe">
66
<param n="Name" t="string"><![CDATA[Virtual service name]]></param>
@@ -49,7 +49,7 @@
4949
<param n="useBridgeIpAsVip" t="boolean"><![CDATA[Use Bridge IP as VIP]]></param>
5050
<param n="useVipAsSnat" t="boolean"><![CDATA[Use the Virtual IP as the SNAT IP for health monitoring]]></param>
5151
<param n="vsVipName" t="string"><![CDATA[Name of the vsvip]]></param>
52-
<param n="aviVroClient" t="Avi:AviVroClient"><![CDATA[Object of the plugin]]></param>
52+
<param n="workflowRuntime" t="Avi:WorkflowRuntime"><![CDATA[Object of the plugin]]></param>
5353
<param n="network_profile" t="string"><![CDATA[]]>
5454
</param>
5555
<script encoded="false"><![CDATA[/*************************************************************
@@ -60,7 +60,7 @@
6060
6161
6262
try {
63-
if(aviVroClient!=null){
63+
if(workflowRuntime.getAviVroClient()!=null){
6464
var objectList = []
6565
// Check Certificate and create it
6666
var Certificate = SSLCertificate;
@@ -251,10 +251,10 @@ try {
251251
serviceArray.push(serviceObject);
252252
virtualServiceObject.setServices(serviceArray);
253253
254-
aviVroClient.addObject(virtualServiceObject);
254+
workflowRuntime.getAviVroClient().addObject(virtualServiceObject, workflowRuntime.getWorkflowId());
255255
System.log("virtualServiceObject : "+virtualServiceObject);
256256
257-
return aviVroClient
257+
return workflowRuntime
258258
}else{
259259
System.log("Avi controller is null.Please attach Avi controller.")
260260
}

0 commit comments

Comments
 (0)