private void updatePortVlanTag( final OvsdbTerminationPointAugmentation terminationPoint, final Port port) { if (terminationPoint.getVlanTag() != null) { Set<Long> vlanTag = new HashSet<>(); vlanTag.add(terminationPoint.getVlanTag().getValue().longValue()); port.setTag(vlanTag); } }
private void createPortVlanTag( final OvsdbTerminationPointAugmentation terminationPoint, final Port port) { if (terminationPoint.getVlanTag() != null) { Set<Long> vlanTag = new HashSet<>(); vlanTag.add(terminationPoint.getVlanTag().getValue().longValue()); port.setTag(vlanTag); } }
private void initializeNodeConfiguration(Node node, String nodeUuid) { NodeConfiguration nodeConfiguration = new NodeConfiguration(); List<OvsdbTerminationPointAugmentation> ports = southbound.getTerminationPointsOfBridge(node); for (OvsdbTerminationPointAugmentation port : ports) { Integer vlan = port.getVlanTag().getValue(); String networkId = tenantNetworkManager.getTenantNetwork(port).getNetworkUUID(); if (vlan != 0 && networkId != null) { internalVlanInUse(nodeConfiguration, vlan); nodeConfiguration.getTenantVlanMap().put(networkId, vlan); } else { LOG.debug("Node: {} initialized without a vlan", node); } } configurationCache.put(nodeUuid, nodeConfiguration); }
private void initializeNodeConfiguration(Node node, String nodeUuid) { NodeConfiguration nodeConfiguration = new NodeConfiguration(); List<OvsdbTerminationPointAugmentation> ports = southbound.getTerminationPointsOfBridge(node); for (OvsdbTerminationPointAugmentation port : ports) { Integer vlan = port.getVlanTag().getValue(); String networkId = tenantNetworkManager.getTenantNetwork(port).getNetworkUUID(); if (vlan != 0 && networkId != null) { internalVlanInUse(nodeConfiguration, vlan); nodeConfiguration.getTenantVlanMap().put(networkId, vlan); } else { LOG.debug("Node: {} initialized without a vlan", node); } } configurationCache.put(nodeUuid, nodeConfiguration); }
return false; if (!Objects.equals(_vlanTag, other.getVlanTag())) { return false;
public OvsdbTerminationPointAugmentationBuilder(OvsdbTerminationPointAugmentation base) { this._ifindex = base.getIfindex(); this._ingressPolicingBurst = base.getIngressPolicingBurst(); this._ingressPolicingRate = base.getIngressPolicingRate(); this._interfaceBfd = base.getInterfaceBfd(); this._interfaceBfdStatus = base.getInterfaceBfdStatus(); this._interfaceExternalIds = base.getInterfaceExternalIds(); this._interfaceLldp = base.getInterfaceLldp(); this._interfaceOtherConfigs = base.getInterfaceOtherConfigs(); this._interfaceType = base.getInterfaceType(); this._interfaceUuid = base.getInterfaceUuid(); this._name = base.getName(); this._ofport = base.getOfport(); this._ofportRequest = base.getOfportRequest(); this._options = base.getOptions(); this._portExternalIds = base.getPortExternalIds(); this._portOtherConfigs = base.getPortOtherConfigs(); this._portUuid = base.getPortUuid(); this._qos = base.getQos(); this._qosEntry = base.getQosEntry(); this._trunks = base.getTrunks(); this._vlanMode = base.getVlanMode(); this._vlanTag = base.getVlanTag(); }