ia64/xen-unstable

changeset 13188:cd7cb95eacc3

Implement network.get_{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:32:35 2006 +0000 (2006-12-25)
parents 8036efeefbd1
children 8f864129d599
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Mon Dec 25 16:26:51 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Mon Dec 25 16:32:35 2006 +0000
     1.3 @@ -470,6 +470,18 @@ class XendAPI:
     1.4          return xen_api_success(
     1.5              XendNode.instance().get_network(ref).get_record())
     1.6  
     1.7 +    def network_get_name_label(self, _, ref):
     1.8 +        return xen_api_success(self._get_network(ref).name_label)
     1.9 +
    1.10 +    def network_get_name_description(self, _, ref):
    1.11 +        return xen_api_success(self._get_network(ref).name_description)
    1.12 +
    1.13 +    def network_get_default_gateway(self, _, ref):
    1.14 +        return xen_api_success(self._get_network(ref).default_gateway)
    1.15 +
    1.16 +    def network_get_default_netmask(self, _, ref):
    1.17 +        return xen_api_success(self._get_network(ref).default_netmask)
    1.18 +
    1.19      def network_get_VIFs(self, _, ref):
    1.20          return xen_api_success(self._get_network(ref).get_VIF_UUIDs())
    1.21