On 03/13/2017 12:25 PM, Satish Dutt wrote:
> *_Is there any way in the Java code which processes the RPC request. to
> know if the 'device-type' value was passed by the NBI user or the
> default value auto-injected by the yang ?_*

Depends on what 'Java code' means.

Binding-Independent APIs do not inject default values, as the
applications are expected to have a SchemaContext available and hence
can look up the value. This is appropriate for data funneling type of
applications expected at this layer.

Binding-Aware APIs inject the default value as the applications do not
have a means to look them up and should not care about the source of the
date -- the semantics is the same. This is appropriate for
model-specific applications, which bind to model semantics.

Why would you need to differentiate between the two?

Regards,
Robert

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to