ia64/xen-unstable

changeset 13189:8f864129d599

Implement network.set_{name_{label,description},default_{gateway,netmask}}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Mon Dec 25 16:36:48 2006 +0000 (2006-12-25)
parents cd7cb95eacc3
children c1fbe291b564
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Mon Dec 25 16:32:35 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Mon Dec 25 16:36:48 2006 +0000
     1.3 @@ -488,6 +488,19 @@ class XendAPI:
     1.4      def network_get_PIFs(self, session, ref):
     1.5          return xen_api_success(self._get_network(ref).get_PIF_UUIDs())
     1.6  
     1.7 +    def network_set_name_label(self, _, ref, val):
     1.8 +        return xen_api_success(self._get_network(ref).set_name_label(val))
     1.9 +
    1.10 +    def network_set_name_description(self, _, ref, val):
    1.11 +        return xen_api_success(self._get_network(ref).set_name_description(val))
    1.12 +
    1.13 +    def network_set_default_gateway(self, _, ref, val):
    1.14 +        return xen_api_success(self._get_network(ref).set_default_gateway(val))
    1.15 +
    1.16 +    def network_set_default_netmask(self, _, ref, val):
    1.17 +        return xen_api_success(self._get_network(ref).set_default_netmask(val))
    1.18 +
    1.19 +
    1.20      # Xen API: Class PIF
    1.21      # ----------------------------------------------------------------
    1.22