What will expected behaviour for replace at intefaces level for openconfig-interface.yang
nijeshvp opened this issue · 1 comments
Thank you very much for quick reply .
if bundle-ether1 had vrf or qos configured earlier (which is from different yang model), before this RPC
And replace at interfaces request , have only "enabled" config .
After replace at interacts RPC, Does qos or vrf config also expected to present under bundle-ether1 ?
Originally posted by @nijeshvp in #1004 (comment)
gNMI replace operates at the tree level, so a replace at /interfaces/interface replaces all config content at this level and below in the tree within the 'origin' specified. Configuration within the /qos tree would not directly be affected.
However, for example, if there are leaf-refs present in the pre-existing configuration (such as /qos/interfaces/interface/interface-id ) which refer to interfaces that are not present in the new gnmi replace , then I would expect the server to reject the configuration with an error as the resulting configuration would have invalid leafrefs.