with-defaults is a parameter that defines NETCONF retrieval behavior. The with-defaults usage is described in RFC 6243, for the NETCONF protocol. It is fully supported by netconfd-pro.

Normally when a server returns a requested subtree of YANG data, it omits the defaults data to minimize network traffic. The with-defaults=report-all option allows clients to retrieve all the default leaf values.


In NETCONF, the <get> and <get-config> operations allow an extra input parameter, called <with-defaults>.


In RESTCONF, the GET method allows an extra query parameter, called "with-defaults"