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

Clarify that calling replace on a list element with `{}` is invalid. #187

Closed wenovus closed 1 year ago

wenovus commented 1 year ago

The following replace operation should be invalid since it is really a deletion operation.

Alternatively we allow treating it as a delete, but from the current spec it looks like it would be discouraged and I know of a vendor implementation that also errors out in this case.

        replace:  {
          path:  {
            elem:  {
              name:  "network-instances"
            }
            elem:  {
              name:  "network-instance"
              key:  {
                key:  "name"
                value:  "RED"
              }
            }
          }
          val:  {
            json_ietf_val:  "{}"
          }
        }