Hi, In one of the modules I have defined a enum device-type-t with a default value as 'switch' and then have a grouping which defines a leaf attribute of the enum device-type-t
typedef device-type-t { type enumeration { enum switch; enum router; } default switch; } grouping device-config-info { list device-config { key uid; leaf hostname { type string; mandatory true; description "Host name of the device"; } leaf device-type { type device-type-t; description "Type of the device being configured"; } } rpc create-device-config { input { uses device-config-info; } output { leaf status { type string; description "returns the status of operation"; } leaf error-message { type string; description "failure message will be indicated otherwise empty"; } } } Now if the NBI user creates device config using the RPC create-device-config but does not pass the device-type attribute. So the yang will inject the default value of switch for the device-type attribute in the Java object. 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 ? Regards -Satish
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev