@name : get_pod @Desc : Returns the Pod Information for a given zone id or Zone Name @Input : zone_id: Id of the Zone pod_name : Name of the Pod pod_id : Id of the Pod @Output : 1. Pod Information for the pod 2. FAILED In case the cmd failed
(apiclient, zone_id=None, pod_id=None, pod_name=None)
| 279 | return physical_networks |
| 280 | |
| 281 | def get_pod(apiclient, zone_id=None, pod_id=None, pod_name=None): |
| 282 | ''' |
| 283 | @name : get_pod |
| 284 | @Desc : Returns the Pod Information for a given zone id or Zone Name |
| 285 | @Input : zone_id: Id of the Zone |
| 286 | pod_name : Name of the Pod |
| 287 | pod_id : Id of the Pod |
| 288 | @Output : 1. Pod Information for the pod |
| 289 | 2. FAILED In case the cmd failed |
| 290 | ''' |
| 291 | cmd = listPods.listPodsCmd() |
| 292 | |
| 293 | if pod_name is not None: |
| 294 | cmd.name = pod_name |
| 295 | if pod_id is not None: |
| 296 | cmd.id = pod_id |
| 297 | if zone_id is not None: |
| 298 | cmd.zoneid = zone_id |
| 299 | |
| 300 | cmd_out = apiclient.listPods(cmd) |
| 301 | |
| 302 | if validateList(cmd_out)[0] != PASS: |
| 303 | return FAILED |
| 304 | return cmd_out[0] |
| 305 | |
| 306 | def get_template( |
| 307 | apiclient, zone_id=None, ostype_desc=None, template_filter="featured", template_type='BUILTIN', |