From 4ea4e7e687527cc8c06489d4deaedf4ed1c3c91c Mon Sep 17 00:00:00 2001 From: Wilder Rodrigues Date: Thu, 19 Nov 2015 12:03:32 +0100 Subject: [PATCH] CLOUDSTACK-9075 - Add method to get list of Physical Networks per zone --- tools/marvin/marvin/lib/common.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/marvin/marvin/lib/common.py b/tools/marvin/marvin/lib/common.py index fb21073658d..fa45299030b 100644 --- a/tools/marvin/marvin/lib/common.py +++ b/tools/marvin/marvin/lib/common.py @@ -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): '''