Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 451B718AD7 for ; Thu, 3 Dec 2015 19:43:31 +0000 (UTC) Received: (qmail 23254 invoked by uid 500); 3 Dec 2015 19:43:30 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 23127 invoked by uid 500); 3 Dec 2015 19:43:30 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 22782 invoked by uid 99); 3 Dec 2015 19:43:30 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2015 19:43:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 86A31E682F; Thu, 3 Dec 2015 19:43:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: remi@apache.org To: commits@cloudstack.apache.org Date: Thu, 03 Dec 2015 19:43:34 -0000 Message-Id: <4dec7633c0ba4640b87f37b48772be95@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/11] git commit: updated refs/heads/master to 7e902cd CLOUDSTACK-9075 - Add method to get list of Physical Networks per zone Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4ea4e7e6 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4ea4e7e6 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4ea4e7e6 Branch: refs/heads/master Commit: 4ea4e7e687527cc8c06489d4deaedf4ed1c3c91c Parents: cb50eb8 Author: Wilder Rodrigues Authored: Thu Nov 19 12:03:32 2015 +0100 Committer: Wilder Rodrigues Committed: Wed Dec 2 10:36:51 2015 +0100 ---------------------------------------------------------------------- tools/marvin/marvin/lib/common.py | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4ea4e7e6/tools/marvin/marvin/lib/common.py ---------------------------------------------------------------------- diff --git a/tools/marvin/marvin/lib/common.py b/tools/marvin/marvin/lib/common.py index fb21073..fa45299 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): '''