Hi All,
I was trying to populate the CDB through NETCONF edit-conf RPC.
In the yang model I have defined an anyxml element called sample as follows:
container trial{ anyxml sample { description "Represent the action to perform"; } }
I have created an xml file (write.xml) to pass to the netconf-console python script (NETCONF client).
The file contains the following:
<trial xmlns="http://prova" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <sample nc:operation="create"> <ciao>ciao1</ciao> </sample > </trial>
when I issue the NETCONF edit-conf RPC through
python netconf-console --proto=tcp --port=2023 --host=127.0.0.1 --user=admin --password=admin --edit-config “write.xml”
I get the following error:
`
If instead I change the write.xml as follows (removing the tag ) everything goes well:
<trial xmlns="http://prova" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <sample nc:operation="create"> ciao1 </sample > </trial>
At this point I don’t see any different to anyxml and type string.
In case I would like to save a tree of xml tags in the CDB could someone tell me how can I do it?
Thanks.