Closed JacobsJohan closed 3 years ago
👋 Interesting ambiguity you found there!
There's also TP-469 (which is a test plan for TR-369) and if you have a look at https://usp-compliance.broadband-forum.org/#get-message-with-object-path you can the expected result for such a path traversing as per the test plan.
So based on the expected test result, the 2nd example shows the correct implementation.
Additional resolved_path_results exist for each of the sub-objects of Device.LocalAgent., with result_params containing the keys and values of each sub-object’s parameters.
Could this be updated in the USP spec to avoid confusion in the future?
Hi Johan,
Thank you for your suggestion. I have sent you an email on submitting this change as a contribution to the USP spec. If you have any questions, please feel free to reply to my email or reach out to info@broadband-forum.org. We appreciate your contribution. Thank You!
Rhonda Heier Broadband Forum
Closing this issue. If you have any questions or comments, please contact the Broadband Forum at info@broadband-forum.org
Description
There is an inconsistency in the examples for the Get message. It is not clear to me how many
resolved_path
s are expected for arequested_path
when therequested_path
points to an object with sub-objects. Quoting the USP spec on this topic:Based on this I would think that the sub-objects of a
resolved_path
are part of the parameters that belong to thatresolved_path
. This is how it's done in the first example where theStats
object is a sub-object ofDevice.WiFi.SSID.1.
.Pasting the example here for clarity:
In response to this request the Agent returns all parameters, plus sub-Objects and their parameters, of the addressed instance. The Agent returns this data in the Get response using a field for each of the requested paths. In this case:
This example seems to be in line with the spec, however a bit further there is another get example with a requested_path for
"Device.LocalAgent.MTP.[Alias=="CoAP-MTP1"]."
(and another path). In this case there are 3resolved_path
s for the request:"Device.LocalAgent.MTP.5156."
"Device.LocalAgent.MTP.5156.CoAP."
"Device.LocalAgent.MTP.5156.STOMP."
However I would expect the
CoAP.
andSTOMP.
sub-objects to be part of the parameters of"Device.LocalAgent.MTP.5156."
similar to theStats
object being a parameter of "Device.WiFi.SSID.1." in the previous example.Pasting full example here for easy reference:
Could you let me know if I am missing something here or if there is indeed an error in the examples? In case there is an error, could you let me know which of the 2 options is the correct one?
Thank you for your time.