Gnmi Get of updated values fails

Calling gnmi.Get on a previously changed resource causes an error due to a merge failure.

Description

This behaviour prevents updating the underlying data model. Thus canges made to ONDs cannot be reflected in the controller's state representation.

Expected Behavior

Calling gnmi.Get on a previously changed resource should update the data model without failure.

Actual Behavior

Calling gnmi.Get on a previously changed resource causes an error.

Possible Fix

See if ygot has an update option in SetNode

Steps to Reproduce

  1. Start controller and OND
  2. Get initial OND state
  3. Create and commit change on device
  4. Get changed OND state