NetconfNodeUtils#extractUserCapabilities method is creating
UserPreferences from NetconfSessionPreferences.
Here the purpose is unclear because NetconfSessionPreferences
are (re)created in NetconfDeviceCommunicator#onSessionUp.
Change-Id: I78ae38ffbd327b29dd29753b8b61d1e9c07bf55b
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
overrideNonModuleCaps = false;
}
+ // FIXME: UserPreferences is constructor parameter of NetconfDeviceCommunicator and NetconfSessionPreferences
+ // are created in NetconfDeviceCommunicator#onSessionUp from session. What are we doing here?
+ // IMO we should rework UserPreferences and NetconfSessionPreferences and this method.
return new UserPreferences(NetconfSessionPreferences.fromStrings(capabilities, CapabilityOrigin.UserDefined),
overrideYangModuleCaps, overrideNonModuleCaps);
}