On Thu, Aug 31, 2017 at 8:54 AM, Karthik Rajagopalan <
krajagopa...@advaoptical.com> wrote:

> Hi,
>
>
>
>
>
>           When we have data model with leafs having default values.
>
>           For ex.
>
> leaf  ip-address {
>
> type string;
>
> default 127.0.0.1;
>
> }
>
>
>
>           I don’t see the ip-address value in my restconf response. Where
> when I check the dataobject, the object has the default value set.
>
>           How do I ensure the default value is set even in mdsal?
>

Default values aren't actually stored in the data store - they're provided
via reads when no actual data exists. However this is only provided via the
binding API and not the DOM API which restconf uses. I don't know why it
wasn't implemented in the DOM layer.

>
>
>
>
> Regards,
>
> Karthik
>
>
>
> _______________________________________________
> controller-dev mailing list
> controller-dev@lists.opendaylight.org
> https://lists.opendaylight.org/mailman/listinfo/controller-dev
>
>
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to