Hi Harinath We are using ODL Boron.
RESTCONF ERROR: There is no Error to the North Bound, but in the server side, below logs are printed, CDS is not updated with the values as the validation is failed. Caused by: java.lang.IllegalArgumentException: Node (urn:opendaylight:params:xml:ns:yang:normalizednodedemo?revision=2015-01-05)emp-list[{(urn:opendaylight:params:xml:ns:yang:normalizednodedemo?revision=2015-01-05)name=vikram}] is missing mandatory descendant /(urn:opendaylight:params:xml:ns:yang:normalizednodedemo?revision=2015-01-05)age RPC ERROR: Since there is no validation, it is returning the SUCCESSFUL RPC result to the North Bound Thanks Vikram From: Harinath Mallepally [mailto:h...@harinath.in] Sent: 27 March 2017 08:22 To: Vikram Darsi <vda...@advaoptical.com> Cc: yangtools-...@lists.opendaylight.org; controller-dev@lists.opendaylight.org Subject: Re: [controller-dev] mandatory fields in RPC input what is the output you are getting? it does through error. what version of ODL you are using? provide response you are getting. On Sun, Mar 26, 2017 at 2:01 AM, Vikram Darsi <vda...@advaoptical.com<mailto:vda...@advaoptical.com>> wrote: Hi Mandatory attributes inside RPC input are not honoured , therefore RPC’s can be invoked without passing mandatory attributes. rpc say-hello { input{ leaf name{ type string; mandatory true; } } } Whereas with RESTCONF url’s the mandatory attributes validation is working. Is this a bug? Thanks Vikram _______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org<mailto: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