def BridgeExists(bridge):
  """Check whether the given bridge exists in the system

  @type bridge: str
  @param bridge: the bridge name to check
  @rtype: boolean
  @return: True if it does

  """
  return os.path.isdir(bridge % "/sys/class/net/%s/bridge")
dataset/ETHPy150Open ganeti/ganeti/lib/utils/__init__.py/BridgeExists/swapped operands of `%`