WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Implement network.get_{name_{label, descr

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Implement network.get_{name_{label, description}, default_{gateway, netmask}}.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Dec 2006 10:55:12 -0800
Delivery-date: Mon, 25 Dec 2006 10:56:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1167064355 0
# Node ID cd7cb95eacc380fede11e71f8e41d932f0d30ed7
# Parent  8036efeefbd1cbd7da1c30abec74b34b48c5d208
Implement network.get_{name_{label,description},default_{gateway,netmask}}.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py |   12 ++++++++++++
 1 files changed, 12 insertions(+)

diff -r 8036efeefbd1 -r cd7cb95eacc3 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Mon Dec 25 16:26:51 2006 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Mon Dec 25 16:32:35 2006 +0000
@@ -469,6 +469,18 @@ class XendAPI:
     def network_get_record(self, session, ref):
         return xen_api_success(
             XendNode.instance().get_network(ref).get_record())
+
+    def network_get_name_label(self, _, ref):
+        return xen_api_success(self._get_network(ref).name_label)
+
+    def network_get_name_description(self, _, ref):
+        return xen_api_success(self._get_network(ref).name_description)
+
+    def network_get_default_gateway(self, _, ref):
+        return xen_api_success(self._get_network(ref).default_gateway)
+
+    def network_get_default_netmask(self, _, ref):
+        return xen_api_success(self._get_network(ref).default_netmask)
 
     def network_get_VIFs(self, _, ref):
         return xen_api_success(self._get_network(ref).get_VIF_UUIDs())

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Implement network.get_{name_{label, description}, default_{gateway, netmask}}., Xen patchbot-unstable <=