Open blp opened 2 years ago
device_id
of 0 may be considered bad practice at there is no way in Protobuf messages to distinguish between a device_id
explicitly set to 0 and a device_id
omitted by mistake in client code. However, it is still a valid value at the moment.device_id
other than 0 with --device-id
. It has to match the value used by the P4Runtime client.Thanks, you confirmed what I guessed. Extra thanks for the forum URL!
Still would appreciate something in the spec, perhaps just a sentence saying that device_ids are managed out-of-band. Bonus points for suggesting gNMI.
It's not clear to me whether there's a way for a P4Runtime client to discover the
device_id
(or IDs) supported by the P4Runtime server that it is talking to. I had assumed that adevice_id
of 0 was the common convention, since that is the default in bmv2's p4runtime server, but Issue #291 implies thatdevice_id
should not be used and will be disallowed in P4Runtime 2.0.I'd appreciate a clear statement in the specification.