Netconf operation replace equivalent in cli

Hi Everyone,

I’ve datamodel designed to accept list of values for a given property. This is generic datamodel to accept properties with list of values or single values.
properties{
list property{
key name
leaf name{}
leat-list value{}
}
}

In netconf request or confd_load command, we can use operation=‘replace’ to override the list value. What is the equivalent in confd cli

Thanks in Advance,
-Venkat

See ConfD 7.3 UG Chapter 18.20.2. “Configure mode commands” under “load” for details. Equalent:

  • confd_load / maapi_load_config() - “confd_load -r -l test.xml”
  • C-style CLI load of XML config - “load replace test.xml”

Thank you for your reply. Confd_load is to load an xml config. I’m using confd cli to update the existing property value, not the NB api’s. Looking for the equivalent to use in confd cli.

Thanks,
-Venkat

I believe I gave you that in the second bullet: C-style CLI load of XML config - “load replace test.xml”

E.g.

$ cat my-load-script.sh
#!/bin/bash
confd_cli -u admin -C << EOF
config
load replace test.xml
commit
exit
exit
EOF