'manage bridge domain'

def config_bridge_domain(self):

    if (not self.bridge_domain_id):
        return
    cmd = ('bridge-domain    %s' % self.bridge_domain_id)
    exist = (self.bridge_domain_id in self.bd_info)
    if (self.state == 'present'):
        if (not exist):
            self.cli_add_command(cmd)
            self.cli_add_command('quit')
    elif exist:
        self.cli_add_command(cmd, undo=True)
