'get one interface attributes dict.'

def get_interface_dict(self, ifname):

    intf_info = dict()
    conf_str = (CE_NC_GET_INTF % ifname)
    recv_xml = get_nc_config(self.module, conf_str)
    if ('<data/>' in recv_xml):
        return intf_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)
    if intf:
        intf_info = dict(ifName=intf[0][0], ifPhyType=intf[0][1], ifNumber=intf[0][2], ifDescr=intf[0][3], isL2SwitchPort=intf[0][4], ifAdminStatus=intf[0][5], ifMtu=intf[0][6])
    return intf_info
