Hi Helen,
it works for me:
netconf> get-config running
Result:
<c xmlns="
http://www.example.com/references">
<seq>1</seq>
</c><c xmlns="
http://www.example.com/references">
<seq>2</seq>
<l1>
<name>one</name>
</l1>
<l1>
<name>two</name>
</l1>
</c><c xmlns="
http://www.example.com/references">
<seq>3</seq>
<l2>
<id>1</id>
</l2>
<l2>
<id>2</id>
</l2>
</c><c xmlns="
http://www.example.com/references">
<seq>4</seq>
<l1>
<name>one</name>
</l1>
<l1>
<name>two</name>
</l1>
<l2>
<id>1</id>
<l1-ref>
<name>/refs:c[4]/refs:l1[1]</name>
</l1-ref>
</l2>
</c>
... other config data I have in server
netconf> validate running
Result OK
netconf>
But I had to update the schematron file since it wasn't generated by the last lnctool using the update files from pyang. Please make sure, that you are running the current lnctoolto generate the validation files. If you run it locally from libnetconf source tree, do:
$ cd dev-tools/lnctool
$ ./lnctool --model references.yang validation
You can also check the netopeer-server, using -v 3 option. During the startup, you should see something like this. Make sure that the files used by the server are the files you want to use:
...
netopeer-server[5473]: Adding base model "/home/krejci/svn/libnetconf/test/references.yin"
netopeer-server[5473]: ncds_features_parse: no feature definitions found in data model references.
netopeer-server[5473]: ncds_new_internal: Relax NG validator set (/home/krejci/svn/libnetconf/test/references-config.rng)
netopeer-server[5473]: ncds_new_internal: Schematron validator set (/home/krejci/svn/libnetconf/test/references-schematron.xsl)
netopeer-server[5473]: Datastore references initiated with ID 1681692778.
I'm attaching the files I get from lnctool.You can compare them to files you got.
Regards,
Radek
Dne 17.4.2015 v 18:33
ingwhe...@gmail.com napsal(a):