[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Implement network.set_{name_{label, description}, default_{gateway, netmask}}.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |