'get nve interface attributes dict.'

def get_nve_dict(self, nve_name):

    nve_info = dict()
    conf_str = (CE_NC_GET_NVE_INFO % nve_name)
    xml_str = get_nc_config(self.module, conf_str)
    if ('<data/>' in xml_str):
        return nve_info
    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)
    nvo3 = root.find('data/nvo3/nvo3Nves/nvo3Nve')
    if nvo3:
        for nve in nvo3:
            if (nve.tag in ['srcAddr', 'ifName', 'nveType']):
                nve_info[nve.tag] = nve.text
    nve_info['vni_peer_protocols'] = list()
    vni_members = root.findall('data/nvo3/nvo3Nves/nvo3Nve/vniMembers/vniMember')
    if vni_members:
        for member in vni_members:
            vni_dict = dict()
            for ele in member:
                if (ele.tag in ['vniId', 'protocol']):
                    vni_dict[ele.tag] = ele.text
            nve_info['vni_peer_protocols'].append(vni_dict)
    nve_info['vni_peer_ips'] = list()
    vni_peers = root.findall('data/nvo3/nvo3Nves/nvo3Nve/vniMembers/vniMember/nvo3VniPeers/nvo3VniPeer')
    if vni_peers:
        for peer_address in vni_peers:
            vni_peer_dict = dict()
            for ele in peer_address:
                if (ele.tag in ['vniId', 'peerAddr']):
                    vni_peer_dict[ele.tag] = ele.text
            nve_info['vni_peer_ips'].append(vni_peer_dict)
    return nve_info
