project-arlo / sonic-mgmt-framework

SONiC Management Framework
Other
5 stars 15 forks source link

return the underlying string value without schema type based conversion #593

Closed kwangsuk closed 4 years ago

kwangsuk commented 4 years ago

RCA - in case a value is encoded as string type, e.g. keepalive-interval (decimal64), the underlying value needs returned without schema type based conversion. otherwise, it cause crash due to the type assertion. Fix - return the stringified value if the underlying type of interface value is string

sonic# configure terminal
sonic(config)# router bgp 65100
sonic(config-router-bgp)# timers 2 3