module ne {
container net {
container dns {
leaf enabled { type boolean; default true; }
list dns-server {
key index;
leaf index { type uint8; }
leaf server-ip { ietf-inet:ip-address; mandatory true; }
}
}
}
cat /opt/dhcp_dns_list.xml
<config xmlns="http://tail-f.com/ns/config/1.0">
<ne xmlns="urn:params:xml:ns:yang:ne">
<net>
<dns>
<dns-server>
<index>0</index>
<server-ip>9.2.5.1</server-ip>
</dns-server>
</dns>
</net>
</ne>
</config>
confd_load -l -p /ne/net/dns/dns-server /opt/dhcp_dns_list.xml
The above keeps deleting the entire contents of /ne/net/dns before it loads the xml, shouldn’t it only delete the contents of the list dns-server? ie if I set enabled to false, after I run confd_load it’s set to the default of true.
How do I get it to just delete and replace the list?