Enabling ietf-netconf-with-defaults


We are looking forward to enable ietf-netconf-with-defaults feature in our device.
Can someone please help with the steps for the same and also please share a sample netconf client get request with defaults .

Thanks in advance

The ietf-netconf-with-defaults is enabled by default in confd.conf as follows:

/confdConfig/netconf/capabilities/ietf-with-defaults/enabled (boolean) [true]

The NETCONF server will advertise its ‘basic-mode’ and ‘also-supported’ modes depending on the parameter /confdConfig/defaultHandlingMode.

Let’s use the intro/1-2-3 example to demonstrate.

To report default values through NETCONF, you will modify confd.conf as follows:

$ diff confd.conf ../1-2-3-start-query-model/confd.conf
<   <defaultHandlingMode>report-all</defaultHandlingMode>

With the system initialized to its default values, you can retrieve the configurable values as follows:

$ netconf-console --get-config -x dhcp
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
    <dhcp xmlns="http://tail-f.com/ns/example/dhcpd">