cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [1/5] git commit: updated refs/heads/4.6 to 519ce86
Date Thu, 03 Dec 2015 18:56:43 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.6 5b7d935ab -> 519ce868a


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/4.6
Commit: 4ea4e7e687527cc8c06489d4deaedf4ed1c3c91c
Parents: cb50eb8
Author: Wilder Rodrigues <wrodrigues@schubergphilis.com>
Authored: Thu Nov 19 12:03:32 2015 +0100
Committer: Wilder Rodrigues <wrodrigues@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):
     '''


Mime
View raw message