'Set the target server type.
Supports filer and dfm server types.'

def set_server_type(self, server_type):

    if (server_type.lower() not in (NaServer.SERVER_TYPE_FILER, NaServer.SERVER_TYPE_DFM)):
        raise ValueError('Unsupported    server    type')
    self._server_type = server_type.lower()
    if (self._server_type == NaServer.SERVER_TYPE_FILER):
        self._url = NaServer.URL_FILER
    else:
        self._url = NaServer.URL_DFM
    self._ns = NaServer.NETAPP_NS
    self._refresh_conn = True
