To date when setting attributes on the gNMI southbound we have always used the string_val type assuming the target device will know how to cast it in to the right data type.
In the case of DeviceSim this is not the case. e.g. setting the value of enabled with:
Keep the type of attribute with the value when we store it. This has the disadvantage that the user would have to know the data type to use when setting a value. Also there is a risk the user could specify a different type each time.
Allow the integration with YGOT to look up the type from the model and assign the correct type. This would have to happen for configs sent southbound and for GetResponses northbound
To date when setting attributes on the gNMI southbound we have always used the string_val type assuming the target device will know how to cast it in to the right data type.
In the case of DeviceSim this is not the case. e.g. setting the value of enabled with:
gives