In this patch I re-use in the get() the same encoding defined in the set() (if any). Using the default/automatic encoding the device I'm using it with doesn't return any data, I have to explicitly set it to json_ietf.
The current code shows diff for the states values, for example when enabling an interface. As the "set" action modifies configuration, it seems cleaner to me to only show diffs of configuration elements. For that, this patch sets the "datatype" to "config".
In this patch I re-use in the get() the same encoding defined in the set() (if any). Using the default/automatic encoding the device I'm using it with doesn't return any data, I have to explicitly set it to
json_ietf
.The current code shows diff for the states values, for example when enabling an interface. As the "set" action modifies configuration, it seems cleaner to me to only show diffs of configuration elements. For that, this patch sets the "datatype" to "config".