def ovsdb_native_supported():
    # Running the test should ensure we are configured for OVSDB native
    try:
        ovs = ovs_lib.BaseOVS()
        ovs.get_bridges()
        return True
    except __HOLE__ as ex:
        LOG.error(_LE("Failed to import required modules. Ensure that the "
                      "python-openvswitch package is installed. Error: %s"),
                  ex)
    except Exception:
        LOG.exception(_LE("Unexpected exception occurred."))

    return False
dataset/ETHPy150Open openstack/neutron/neutron/cmd/sanity/checks.py/ovsdb_native_supported