def METHOD_NAME(db):
    """Enable console switch"""
    config_db = ValidatedConfigDBConnector(db.cfgdb)
    table = "CONSOLE_SWITCH"
    dataKey1 = 'console_mgmt'
    dataKey2 = 'enabled'
    data = { dataKey2 : "yes" }
    try:
        config_db.mod_entry(table, dataKey1, data)
    except ValueError as e:
        ctx = click.get_current_context()
        ctx.fail("Invalid ConfigDB. Error: {}".format(e))