|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <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" |
4 | 4 | id="d84d0b9a-93f0-4339-8db7-db20f3c43123" version="1.1.5" |
5 | 5 | allowed-operations="vfe"> |
6 | 6 | <param n="Name" t="string"><![CDATA[Virtual service name]]></param> |
|
49 | 49 | <param n="useBridgeIpAsVip" t="boolean"><![CDATA[Use Bridge IP as VIP]]></param> |
50 | 50 | <param n="useVipAsSnat" t="boolean"><![CDATA[Use the Virtual IP as the SNAT IP for health monitoring]]></param> |
51 | 51 | <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> |
53 | 53 | <param n="network_profile" t="string"><![CDATA[]]> |
54 | 54 | </param> |
55 | 55 | <script encoded="false"><![CDATA[/************************************************************* |
|
60 | 60 |
|
61 | 61 |
|
62 | 62 | try { |
63 | | - if(aviVroClient!=null){ |
| 63 | + if(workflowRuntime.getAviVroClient()!=null){ |
64 | 64 | var objectList = [] |
65 | 65 | // Check Certificate and create it |
66 | 66 | var Certificate = SSLCertificate; |
@@ -251,10 +251,10 @@ try { |
251 | 251 | serviceArray.push(serviceObject); |
252 | 252 | virtualServiceObject.setServices(serviceArray); |
253 | 253 |
|
254 | | - aviVroClient.addObject(virtualServiceObject); |
| 254 | + workflowRuntime.getAviVroClient().addObject(virtualServiceObject, workflowRuntime.getWorkflowId()); |
255 | 255 | System.log("virtualServiceObject : "+virtualServiceObject); |
256 | 256 | |
257 | | - return aviVroClient |
| 257 | + return workflowRuntime |
258 | 258 | }else{ |
259 | 259 | System.log("Avi controller is null.Please attach Avi controller.") |
260 | 260 | } |
|
0 commit comments