for (org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712 .l2gateway.attributes.devices.Interfaces deviceInterface : hwVtepDevice.getInterfaces()) { String phyPortName = deviceInterface.getInterfaceName(); if (deviceInterface.getSegmentationIds() != null && !deviceInterface.getSegmentationIds().isEmpty()) { for (Integer vlanId : deviceInterface.getSegmentationIds()) { HwvtepUtils.deleteVlanBinding(transaction, physicalSwitchNodeId, phyPortName, vlanId);
if (l2DeviceName != null && l2DeviceName.equals(psName)) { for (Interfaces deviceInterface : l2Device.getInterfaces()) { if (deviceInterface.getInterfaceName().equals(newPortId)) { if (deviceInterface.getSegmentationIds() != null && !deviceInterface.getSegmentationIds().isEmpty()) { for (Integer vlanId : deviceInterface.getSegmentationIds()) { vlanBindings.add(HwvtepSouthboundUtils.createVlanBinding(hwvtepNodeId, vlanId, logicalSwitchName));
hwVtepDevice.getDeviceName()); TerminationPoint portTerminationPoint = HwvtepUtils.getPhysicalPortTerminationPoint(broker, LogicalDatastoreType.OPERATIONAL, physicalSwitchNodeId, deviceInterface.getInterfaceName()); if (portTerminationPoint == null) { if (deviceInterface.getSegmentationIds() != null && !deviceInterface.getSegmentationIds().isEmpty()) { for (Integer vlanId : deviceInterface.getSegmentationIds()) { vlanBindings.add(HwvtepSouthboundUtils.createVlanBinding(nodeId, vlanId, logicalSwitchName)); deviceInterface.getInterfaceName(), vlanBindings);
String interfaceName = null; final List<Integer> segmentationIds = new ArrayList<Integer>(); if (deviceInterface.getInterfaceName() != null){ interfaceName = deviceInterface .getInterfaceName().toString(); if (deviceInterface.getSegmentationIds() != null){ for(final Integer segmentId:deviceInterface.getSegmentationIds()){ segmentationIds.add(segmentId);