p4lang / p4runtime

Specification documents for the P4Runtime control-plane API
Apache License 2.0
147 stars 88 forks source link

device_id discovery #379

Open blp opened 2 years ago

blp commented 2 years ago

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 a device_id of 0 was the common convention, since that is the default in bmv2's p4runtime server, but Issue #291 implies that device_id should not be used and will be disallowed in P4Runtime 2.0.

I'd appreciate a clear statement in the specification.

antoninbas commented 2 years ago
blp commented 2 years ago

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.