On Wed, Jan 3, 2018 at 12:04 AM, Prashant Kashyap <
[email protected]> wrote:
> Hi,
> I am new to opendaylight world, so probably I may not be able to phrase
> is correctly in opendyalight terminology.
>
> The problem I am facing is as follows:
> 1) Following is the body of my json input from POSTMAN App
> "junos-conf-class-of-service:drop-profiles": [
> {
> "name": "dp-aggressive",
> "interpolate": {
> "drop-probability": [0, 100],
> "fill-level": [25, 70]
> }
> }
> ]
> }
>
> 2) This is Juniper router specific config.
> 3) Here what we see when it comes to Juniper router from opendaylight
> controller, order of fill-level gets exchanged, and it comes as [70,25]
> instead of [25, 70]
>
> So my question is why it gets changed? Is there any way we can prevent
> this?
> Also we see this behavior only for some of the input not for all. Like if
> I use [26, 70] than it comes in same order.
>
By default yang lists are unordered. You need to specify ordered-by:
list my-list {
ordered-by user;
...
}
This is described in https://tools.ietf.org/html/rfc6020#section-7.7.5
>
> So not sure what the logic/algo plays here.
> Your help will be really appreciable.
>
> Regards,
> Prashant
>
>
>
> _______________________________________________
> controller-dev mailing list
> [email protected]
> https://lists.opendaylight.org/mailman/listinfo/controller-dev
>
>
_______________________________________________
controller-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/controller-dev