ConfD User Community

Sending error message for wrong configuration data

Hi,
I have a list having configurational data(RW=TRUE)
Generally when i send request from client then I get reply like as below:
/new-home/buildtools/confd/7.3/x86_64/bin/netconf-console-tcp --host=10.10.11.101 -port=2023 cmd-set-uplane.xml

<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<ok/>
</rpc-reply>

Is there any option available through which on receiving the callback on my confd application, I can send in case of wrong configuration or configuration didn’t process instead of “OK”.

Regards,
Biswajit

You can validate your configuration. If validation fails, you get error. See User Guide Chapter 11. Semantic validation. Probably you need to implement validation point, if YANG validation (must) cannot detect wrong configuration.