mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-9075 - Add method to get list of Physical Networks per zone
This commit is contained in:
parent
cb50eb8e17
commit
4ea4e7e687
@ -259,6 +259,17 @@ def get_zone(apiclient, zone_name=None, zone_id=None):
|
||||
'''
|
||||
return cmd_out[0]
|
||||
|
||||
def get_physical_networks(apiclient, zoneid):
|
||||
'''
|
||||
@name : get_physical_networks
|
||||
@Desc :Returns A list of the Physical Networks in the given Zone
|
||||
@Input : zoneid: The Zone ID
|
||||
@Output : 1. A list containing the Physical Networks
|
||||
'''
|
||||
cmd = listPhysicalNetworks.listPhysicalNetworksCmd()
|
||||
cmd.zoneid = zoneid
|
||||
physical_networks = apiclient.listPhysicalNetworks(cmd)
|
||||
return physical_networks
|
||||
|
||||
def get_pod(apiclient, zone_id=None, pod_id=None, pod_name=None):
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user