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.set_{name_{label, descr

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Implement network.set_{name_{label, description}, default_{gateway, netmask}}.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Dec 2006 10:55:13 -0800
Delivery-date: Mon, 25 Dec 2006 10:56:46 -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 1167064608 0
# Node ID 8f864129d5994a99112eb786bbac9cf10508b377
# Parent  cd7cb95eacc380fede11e71f8e41d932f0d30ed7
Implement network.set_{name_{label,description},default_{gateway,netmask}}.

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

diff -r cd7cb95eacc3 -r 8f864129d599 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Mon Dec 25 16:32:35 2006 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Mon Dec 25 16:36:48 2006 +0000
@@ -487,6 +487,19 @@ class XendAPI:
 
     def network_get_PIFs(self, session, ref):
         return xen_api_success(self._get_network(ref).get_PIF_UUIDs())
+
+    def network_set_name_label(self, _, ref, val):
+        return xen_api_success(self._get_network(ref).set_name_label(val))
+
+    def network_set_name_description(self, _, ref, val):
+        return 
xen_api_success(self._get_network(ref).set_name_description(val))
+
+    def network_set_default_gateway(self, _, ref, val):
+        return xen_api_success(self._get_network(ref).set_default_gateway(val))
+
+    def network_set_default_netmask(self, _, ref, val):
+        return xen_api_success(self._get_network(ref).set_default_netmask(val))
+
 
     # Xen API: Class PIF
     # ----------------------------------------------------------------

_______________________________________________
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.set_{name_{label, description}, default_{gateway, netmask}}., Xen patchbot-unstable <=