'get the detail information of ospf'

def get_ospf_info(self):

    self.ospf_info['ospfsite'] = list()
    getxmlstr = CE_NC_GET_OSPF_VRF
    xml_str = get_nc_config(self.module, getxmlstr)
    if ('data/' in xml_str):
        return
    xml_str = xml_str.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)
    ospf_sites = root.findall('data/ospfv2/ospfv2comm/ospfSites/ospfSite')
    if ospf_sites:
        for ospf_site in ospf_sites:
            ospf_ele_info = dict()
            for ospf_site_ele in ospf_site:
                if (ospf_site_ele.tag in ['processId', 'routerId', 'vrfName', 'bandwidthReference', 'description', 'lsaArrivalInterval', 'lsaArrivalMaxInterval', 'lsaArrivalStartInterval', 'lsaArrivalHoldInterval', 'lsaArrivalFlag', 'lsaOriginateInterval', 'lsaOriginateMaxInterval', 'lsaOriginateStartInterval', 'lsaOriginateHoldInterval', 'lsaOriginateIntervalFlag', 'spfScheduleInterval', 'spfScheduleIntervalMillisecond', 'spfScheduleMaxInterval', 'spfScheduleStartInterval', 'spfScheduleHoldInterval', 'spfScheduleIntervalType']):
                    ospf_ele_info[ospf_site_ele.tag] = ospf_site_ele.text
            self.ospf_info['ospfsite'].append(ospf_ele_info)
