'get interfaces attributes dict.'

def get_interfaces_dict(self):

    intfs_info = dict()
    conf_str = CE_NC_GET_INTFS
    recv_xml = get_nc_config(self.module, conf_str)
    if ('<data/>' in recv_xml):
        return intfs_info
    intf = re.findall('.*<ifName>(.*)</ifName>.*\\s*<ifPhyType>(.*)</ifPhyType>.*\\s*<ifNumber>(.*)</ifNumber>.*\\s*<ifDescr>(.*)</ifDescr>.*\\s*<isL2SwitchPort>(.*)</isL2SwitchPort>.*\\s*<ifAdminStatus>(.*)</ifAdminStatus>.*\\s*<ifMtu>(.*)</ifMtu>.*', recv_xml)
    for tmp in intf:
        if tmp[1]:
            if (not intfs_info.get(tmp[1].lower())):
                intfs_info[tmp[1].lower()] = list()
            intfs_info[tmp[1].lower()].append(dict(ifName=tmp[0], ifPhyType=tmp[1], ifNumber=tmp[2], ifDescr=tmp[3], isL2SwitchPort=tmp[4], ifAdminStatus=tmp[5], ifMtu=tmp[6]))
    return intfs_info
