Change-Id: I9f650e192ae18c8923b2493342f6ee917d8e7802
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
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();