def get_snapshotservice(controller_configs):
  # Read from config what controller we are using
  # TODO(cs): allow for heterogenous controllers?
  if controller_configs != [] and controller_configs[0].sync:
    snapshotService = SyncProtoSnapshotService()
  elif controller_configs != [] and controller_configs[0].controller_class == POXController:
    snapshotService = PoxSnapshotService()
  elif controller_configs != [] and controller_configs[0].controller_class == BigSwitchController:
    snapshotService = BigSwitchSnapshotService()
  else:
    # We default snapshotService to POX
    snapshotService = PoxSnapshotService()
  return snapshotService
Return the offset of the named field inside the given
dataset/ETHPy150Open ucb-sts/sts/sts/snapshot.py/get_snapshotservice--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cffi-1.5.2/cffi/api.py/FFI.offsetof