'get bridge domain list'

def get_bd_list(self):

    bd_info = list()
    conf_str = CE_NC_GET_BRIDGE_DOMAIN
    xml_str = get_nc_config(self.module, conf_str)
    if ('<data/>' in xml_str):
        return bd_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)
    bds = root.findall('data/evc/bds/bd/bdId')
    if (not bds):
        return bd_info
    for bridge_domain in bds:
        if (bridge_domain.tag == 'bdId'):
            bd_info.append(bridge_domain.text)
    return bd_info
