Skip to content

Commit 4ea4e7e

Browse files
CLOUDSTACK-9075 - Add method to get list of Physical Networks per zone
1 parent cb50eb8 commit 4ea4e7e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎tools/marvin/marvin/lib/common.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,17 @@ def get_zone(apiclient, zone_name=None, zone_id=None):
259259
'''
260260
return cmd_out[0]
261261

262+
def get_physical_networks(apiclient, zoneid):
263+
'''
264+
@name : get_physical_networks
265+
@Desc :Returns A list of the Physical Networks in the given Zone
266+
@Input : zoneid: The Zone ID
267+
@Output : 1. A list containing the Physical Networks
268+
'''
269+
cmd = listPhysicalNetworks.listPhysicalNetworksCmd()
270+
cmd.zoneid = zoneid
271+
physical_networks = apiclient.listPhysicalNetworks(cmd)
272+
return physical_networks
262273

263274
def get_pod(apiclient, zone_id=None, pod_id=None, pod_name=None):
264275
'''

0 commit comments

Comments
 (0)