'Enables vserver or vfiler tunneling.'

def _enable_tunnel_request(self, netapp_elem):

    if (hasattr(self, '_vfiler') and self._vfiler):
        if (hasattr(self, '_api_major_version') and hasattr(self, '_api_minor_version') and (self._api_major_version >= 1) and (self._api_minor_version >= 7)):
            netapp_elem.add_attr('vfiler', self._vfiler)
        else:
            raise ValueError('ontapi    version    has    to    be    atleast    1.7    to    send    request    to    vfiler')
    if (hasattr(self, '_vserver') and self._vserver):
        if (hasattr(self, '_api_major_version') and hasattr(self, '_api_minor_version') and (self._api_major_version >= 1) and (self._api_minor_version >= 15)):
            netapp_elem.add_attr('vfiler', self._vserver)
        else:
            raise ValueError('ontapi    version    has    to    be    atleast    1.15    to    send    request    to    vserver')
