Closed hellt closed 1 year ago
proto files have a choice-like statement called oneof oneof means that the filed can take one of the following values, consider this example:
oneof
message QualificationConfiguration { oneof timing { NTPSyncedTiming ntp = 101; RPCSyncedTiming rpc = 102; }
The use of oneof denotes that timing can be set to either NTP or RPC. We have to display that choice in the UI. Luckily, the json data has this info - https://github.com/srl-labs/gnxi-browser/blob/e763acdc378d6c45fd77eaa31550f8a30c72dea6/static/interfaces/gnoi/packet_link_qualification/0.1.0/proto-doc.json#L1052-L1061
timing
done sometime ago:D
proto files have a choice-like statement called
oneof
oneof
means that the filed can take one of the following values, consider this example:The use of
oneof
denotes thattiming
can be set to either NTP or RPC. We have to display that choice in the UI. Luckily, the json data has this info - https://github.com/srl-labs/gnxi-browser/blob/e763acdc378d6c45fd77eaa31550f8a30c72dea6/static/interfaces/gnoi/packet_link_qualification/0.1.0/proto-doc.json#L1052-L1061