Closed garethsb closed 4 years ago
N/W controller is expected to set up flows based on BW indicated in endpoint object and not under/over provision. What would be use case(s) for gt or lt?
Not sure I understand exact match question. N/W controller needs to support BW based on corresponding schema and support all these formats ..Sachin
Given the following data in the Network Controller /endpoints
:
[
{
"id": "fa08a879-488d-4e2b-8104-805e2288d8e9", ...
"max_bandwidth": "10Gbit/s",
},
{
"id": "d9c88a0a-c0c8-4ec8-ade5-fde9106e5040", ...
"max_bandwidth": "10.0Gbit/s",
},
{
"id": "e90af02c-03ff-4a43-9cb9-4d86e0f3161a", ...
"max_bandwidth": "0010Gbit/s",
}
]
What does the request /endpoints?max_bandwidth=10Gbit/s
return?
Based upon other APIs, basic queries would expect an exact match, so that specific query would only return one of those results. Personally I think this would be better resolved via the notes in #31 rather than changing the query language to handle complex translations.
Agreed
Bandwidths in the Network Control API are given as "\<number>\<unit>" strings in the JSON resource representations.
The RAML
queryParameters
seem currently not well defined.What constitutes an exact match?
(Aside: RQL didn't make the API v1.0, but 'eq', 'gt', 'lt', etc. would be useful with bandwidths.)