openconfig / reference

This repository contains reference implementations, specifications and tooling related to OpenConfig-based network management.
Apache License 2.0
155 stars 88 forks source link

gNMI Set Semantics when Update and Replace fields intersect #134

Closed wenovus closed 3 years ago

wenovus commented 3 years ago

Hi,

message SetRequest {
...
  repeated Update replace = 3;    // Updates specifying elements to be replaced.
  repeated Update update = 4;     // Updates specifying elements to updated.
...
}

From the surface of this definition it looks to me that it's possible for the updates to intersect. Is this right? If so, how should this be handled?

wenovus commented 3 years ago

Nevermind, this is addressed in the spec here: https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-specification.md#34-modifying-state.