Hi Brian,
Dne 3.10.2013 20:53, Brian Rushka napsal(a):
> Hi Radek,
>
> Thank you for following up.
>
no problem
> Apparently, I do not yet understand the proper workflow.
>
> Can I use the lnctool on the client side? I need suggestions on how to generate correct edit-config XML strings. Initially, I can hard code the messages, but as our device data model evolves I will need to create messages to access subsets of the configuration.
>
lnctool is supposed only for the server side - from the YANG file it
generates yin format (used by libnetconf instead of yang) and files
(schemas and stylesheets) for validation.
Preparing NETCONF requests (especially edit-config's) content is
currently out of scope of the Netopeer tools (and libnetconf as well).
We are preparing Netopeer WebGUI which, based on YANG data model
provided by the server via get-schema operation (some RFC, I don't
remember the number right now), creates Web interface and then generates
edit-config's content automatically based on user's changes of the
configuration data in the user interface. WebGUI will be published as
part of the Netopeer project in a month or two.
Creating edit-config's XML that modifies configuration data is out of
libnetconf scope and the creation of such data is up to the specific client.
> At this point, I believe a partial configuration change means either:
> 1. edit a full schema on the client side and send a complete configuration, or
> 2. isolate the target part of the schema and send a partial update that the server can understand.
>
yes, actually 1. is usually copy-config and the 2. is edit-config, but
there is no limitation to use edit-config for the 1. And libnetconf
supports this, but preparation of the configuration data is up to the
client.
Best regards,
Radek