You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2015/12/03 20:43:34 UTC

[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 <wr...@schubergphilis.com>
Authored: Thu Nov 19 12:03:32 2015 +0100
Committer: Wilder Rodrigues <wr...@schubergphilis.com>
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):
     '''