Fix for wrong superInterface selection for VLAN 73/42773/1
authorMichal Cmarada <mcmarada@cisco.com>
Fri, 29 Jul 2016 09:27:37 +0000 (11:27 +0200)
committerMichal Cmarada <mcmarada@cisco.com>
Fri, 29 Jul 2016 09:27:37 +0000 (11:27 +0200)
Change-Id: I9f650e192ae18c8923b2493342f6ee917d8e7802
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
renderers/vpp/src/main/java/org/opendaylight/groupbasedpolicy/renderer/vpp/policy/BridgeDomainManagerImpl.java

index 54f2b8d0da3ab96708ad832407fa3bcb3214009b..6d87f0bdedc2a05c2858ca44b140791031bde942 100644 (file)
@@ -166,6 +166,8 @@ public class BridgeDomainManagerImpl implements BridgeDomainManager {
             public ListenableFuture<Void> apply(Optional<BridgeDomain> optBridgeDomainConf) throws Exception {
                 if (optBridgeDomainConf.isPresent() && optBridgeDomainConf.get().getPhysicalLocationRef() != null) {
                     for (PhysicalLocationRef ref : optBridgeDomainConf.get().getPhysicalLocationRef()) {
+                        if (!ref.getNodeId().equals(vppNodeId)) continue; //not our referenced node skipping
+
                         if (ref.getInterface() != null && ref.getInterface().size() > 0) {
                             NodeVbridgeVlanAugment vppNodeVlanAug = new NodeVbridgeVlanAugmentBuilder()
                                 .setSuperInterface(ref.getInterface().get(0)).build();