'get vlan attributes.'

def get_vlan_attr(self, vlan_id):

    conf_str = (CE_NC_GET_VLAN % vlan_id)
    xml_str = get_nc_config(self.module, conf_str)
    attr = dict()
    if ('<data/>' in xml_str):
        return attr
    else:
        re_find = re.findall('.*<vlanId>(.*)</vlanId>.*\\s*<vlanName>(.*)</vlanName>.*\\s*<vlanDesc>(.*)</vlanDesc>.*', xml_str)
        if re_find:
            attr = dict(vlan_id=re_find[0][0], name=re_find[0][1], description=re_find[0][2])
        return attr
