'Get radius server name'

def get_radius_server_name(self, **kwargs):

    module = kwargs['module']
    radius_group_name = module.params['radius_group_name']
    raduis_server_type = module.params['raduis_server_type']
    radius_server_name = module.params['radius_server_name']
    radius_server_port = module.params['radius_server_port']
    radius_server_mode = module.params['radius_server_mode']
    radius_vpn_name = module.params['radius_vpn_name']
    state = module.params['state']
    result = dict()
    result['radius_server_name_cfg'] = []
    need_cfg = False
    conf_str = (CE_GET_RADIUS_SERVER_NAME % radius_group_name)
    recv_xml = self.netconf_get_config(module=module, conf_str=conf_str)
    if ('<data/>' in recv_xml):
        if (state == 'present'):
            need_cfg = True
    else:
        xml_str = recv_xml.replace('\r', '').replace('\n', '').replace('xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"', '').replace('xmlns="http://www.huawei.com/netconf/vrp"', '')
        root = ElementTree.fromstring(xml_str)
        radius_server_name_cfg = root.findall('data/radius/rdsTemplates/rdsTemplate/rdsServerNames/rdsServerName')
        if radius_server_name_cfg:
            for tmp in radius_server_name_cfg:
                tmp_dict = dict()
                for site in tmp:
                    if (site.tag in ['serverType', 'serverName', 'serverPort', 'serverMode', 'vpnName']):
                        tmp_dict[site.tag] = site.text
                result['radius_server_name_cfg'].append(tmp_dict)
        if result['radius_server_name_cfg']:
            for tmp in result['radius_server_name_cfg']:
                if ('serverType' in tmp.keys()):
                    if (state == 'present'):
                        if (tmp['serverType'] != raduis_server_type):
                            need_cfg = True
                    elif (tmp['serverType'] == raduis_server_type):
                        need_cfg = True
                if ('serverName' in tmp.keys()):
                    if (state == 'present'):
                        if (tmp['serverName'] != radius_server_name):
                            need_cfg = True
                    elif (tmp['serverName'] == radius_server_name):
                        need_cfg = True
                if ('serverPort' in tmp.keys()):
                    if (state == 'present'):
                        if (tmp['serverPort'] != radius_server_port):
                            need_cfg = True
                    elif (tmp['serverPort'] == radius_server_port):
                        need_cfg = True
                if ('serverMode' in tmp.keys()):
                    if (state == 'present'):
                        if (tmp['serverMode'] != radius_server_mode):
                            need_cfg = True
                    elif (tmp['serverMode'] == radius_server_mode):
                        need_cfg = True
                if ('vpnName' in tmp.keys()):
                    if (state == 'present'):
                        if (tmp['vpnName'] != radius_vpn_name):
                            need_cfg = True
                    elif (tmp['vpnName'] == radius_vpn_name):
                        need_cfg = True
    result['need_cfg'] = need_cfg
    return result
