In YumaPro SDK 16.10-4 and later there is a parameter to control whether or not the netconfd-pro server will create empty non-presence containers by default.
Prior to the release of version 16.10-4, YumaPro SDK also creates empty non-presence containers by default, but there was no such parameter to turn off this behavior.
--create-empty-npcontainers=boolean
An empty non-presence container has no meaning in NETCONF/YANG
so it may be created by the server. In particular, the presence of the
container node with no child nodes is semantically equivalent to the
absence of the container node. This is the default style.
If this parameter is set to false, then the server will not create empty NP containers.
The create-empty-npcontainers parameter can be invoked via the command line:
user@system> netconfd-pro --create-empty-npcontainers=false
or can be configured in the /etc/yumapro/netconfd-pro.conf file:
#### leaf create-empty-npcontainers # # An empty non-presence container has no meaning # in NETCONF/YANG so it may be created by the server. # In particular, the presence of the container # node with no child nodes is semantically # equivalent to the absence of the container node. # This is the default style. # # If this parameter is set to false, then the server # will not create empty NP containers. # # create-empty-npcontainers true # create-empty-npcontainers false