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