Populating tunnels list in physical switch table is not updating topology
operational DS. PhysicalSwitchUpdate.setTunnels() is making a wrong check for
isEmpty() to determine if data needs to be added to data store or not. It should be !isEmpty()
Change-Id: Iec4f773210fb07d019299558fb63f949b05788a7
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
private void setTunnels(Node node, PhysicalSwitchAugmentationBuilder psAugmentationBuilder,
PhysicalSwitch pSwitch) {
if (pSwitch.getTunnels() != null && pSwitch.getTunnels().getData() != null
- && pSwitch.getTunnels().getData().isEmpty()) {
+ && !pSwitch.getTunnels().getData().isEmpty()) {
Set<UUID> uuidList = pSwitch.getTunnels().getData();
List<Tunnels> tunnelList = new ArrayList<>();
TunnelsBuilder tBuilder = new TunnelsBuilder();