Add confirmation step to new netconf, with the caveat that it will be disabled for older netconf servers to avoid race. Also add some comments.

This commit is contained in:
Adam Ierymenko 2015-01-09 16:35:20 -05:00
parent afea153a0b
commit 0b84c10ccc
5 changed files with 75 additions and 9 deletions

View file

@ -274,7 +274,7 @@ int Network::setConfiguration(const Dictionary &conf,bool saveToDisk)
{
Mutex::Lock _l(_lock);
if ((_config)&&(*_config == *newConfig))
return 1; // OK but duplicate
return 1; // OK config, but duplicate of what we already have
}
if (applyConfiguration(newConfig)) {
if (saveToDisk) {