ingwhe...@gmail.com
unread,May 26, 2015, 11:57:51 AM5/26/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to libne...@googlegroups.com
Hello,
I'm wondering if apply_rpc_validate_() should also validate operational state data?
I understand that libnetconf also validates the configuration against the operational state data, but is that necessary or useful?
If an <edit-config> RPC on running_config is received, the libnetconf merges the new configuration and tries to validate the new configuration. At this point, transapi functions haven't been invoked yet. But before validation is performed, libnetconf retrieves the operational state data (get_state()). In other words, the operational state data that libnetconf retrieves at this point would only reflect the operational state of the true running config, not the merged configuration. What then is the purpose of validating the merged configuration against the operational state at that this point? (Similarly, what's the purpose of validating candidate config against current operational state?)
Thanks,
Helen