How to set up ConfD for NETCONF's get-schema rpc call to work?

In order for NETCONF’s get-schema rpc call to work on ConfD, make sure that the IETF NETCONF MONITORING YANG module is loaded into ConfD at runtime.

In addition, the schemas that you are retrieving have to have both of their YANG files and fxs files be located in ConfD’s loadpath using the --addloadpath argument when starting ConfD.

Following is an example get-schema rpc call for retrieving the schema of a YANG module named module-name:

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">

Alternatively, you can use the command line argument of netconf-console to issue the get-schema rpc call as follows:

netconf-console --get-schema=module-name