May 26, 2015, 11:57:51 AM5/26/15
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?)