project-arlo / sonic-mgmt-framework

SONiC Management Framework
Other
5 stars 15 forks source link

Fix for SNC-3865 #608

Closed rathnasabapathyv closed 4 years ago

rathnasabapathyv commented 4 years ago

RCA for SNC-3865:

GET at "/restconf/data/openconfig-network-instance:network-instances/network-instance=default/protocols/protocol=BGP,bgp" is not worked, because while processing the GET request, REST-server got crashed as shown in this attachment ( RCA_RestServer_crash.txt )

Fix for SNC-3865:

YGOT memory for BGP container is not initialized. It was nill, since get is initiated at one container above. With this fix, allocating memory for BGP container. Also initialized the memory for GET callback to fill all data. For e.g. BGP RIB was not filled earlier.

Other fixes in this pull-request:

UT-logs: