def _GetInstNicParam(name):
  """Build function for retrieving a NIC parameter.

  @type name: string
  @param name: Parameter name

  """
  def fn(ctx, index, _):
    """Get a NIC's bridge.

    @type ctx: L{InstanceQueryData}
    @type inst: L{objects.Instance}
    @param inst: Instance object
    @type nic: L{objects.NIC}
    @param nic: NIC object

    """
    assert len(ctx.inst_nicparams) == index
    return ctx.inst_nicparams[index][name]

  return fn
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetInstNicParam/operator `>=` -> `==`