Skip to content

Commit

Permalink
Fix full config update (#240)
Browse files Browse the repository at this point in the history
Why I did it
GNMI full config end to end test is broken.

How I did it
Fix yang validation part to send file name to python code.

How to verify it
Run gnmi unit test and end to end test.
  • Loading branch information
ganglyu authored May 21, 2024
1 parent 692f967 commit 81174c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_data_client/mixed_db_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ func (c *MixedDbClient) SetFullConfig(delete []*gnmipb.Path, replace []*gnmipb.U
return err
}

PyCodeInGo := fmt.Sprintf(PyCodeForYang, ietf_json_val)
PyCodeInGo := fmt.Sprintf(PyCodeForYang, fileName)
err = RunPyCode(PyCodeInGo)
if err != nil {
return fmt.Errorf("Yang validation failed!")
Expand Down

0 comments on commit 81174c0

Please sign in to comment.