public boolean isTunnel(OvsdbTerminationPointAugmentation port) { LOG.trace("SouthboundImpl#isTunnel: Interface : {}", port); if(port.getInterfaceType() == null){ LOG.warn("No type found for the interface : {}", port); return false; } return MdsalHelper.createOvsdbInterfaceType( port.getInterfaceType()).equals(NetworkHandler.NETWORK_TYPE_VXLAN) || MdsalHelper.createOvsdbInterfaceType( port.getInterfaceType()).equals(NetworkHandler.NETWORK_TYPE_GRE); }
public boolean isTunnel(OvsdbTerminationPointAugmentation port) { LOG.trace("SouthboundImpl#isTunnel: Interface : {}", port); if(port.getInterfaceType() == null){ LOG.warn("No type found for the interface : {}", port); return false; } return MdsalHelper.createOvsdbInterfaceType( port.getInterfaceType()).equals(NetworkHandler.NETWORK_TYPE_VXLAN) || MdsalHelper.createOvsdbInterfaceType( port.getInterfaceType()).equals(NetworkHandler.NETWORK_TYPE_GRE); }
private boolean isInterfaceOfInterest(OvsdbTerminationPointAugmentation terminationPoint, List<String> phyIfName) { LOG.trace("SouthboundHandler#isInterfaceOfInterest: Interface : {}", terminationPoint); if(terminationPoint.getInterfaceType() == null){ // This is OK since eth ports don't have an interface type return false; } return MdsalHelper.createOvsdbInterfaceType( terminationPoint.getInterfaceType()).equals(NetworkHandler.NETWORK_TYPE_VXLAN) || MdsalHelper.createOvsdbInterfaceType( terminationPoint.getInterfaceType()).equals(NetworkHandler.NETWORK_TYPE_GRE) || phyIfName.contains(terminationPoint.getName()); }
private boolean isInterfaceOfInterest(OvsdbTerminationPointAugmentation terminationPoint, List<String> phyIfName) { LOG.trace("SouthboundHandler#isInterfaceOfInterest: Interface : {}", terminationPoint); if(terminationPoint.getInterfaceType() == null){ // This is OK since eth ports don't have an interface type LOG.info("No type found for the interface : {}", terminationPoint); return false; } return MdsalHelper.createOvsdbInterfaceType( terminationPoint.getInterfaceType()).equals(NetworkHandler.NETWORK_TYPE_VXLAN) || MdsalHelper.createOvsdbInterfaceType( terminationPoint.getInterfaceType()).equals(NetworkHandler.NETWORK_TYPE_GRE) || phyIfName.contains(terminationPoint.getName()); }
private void createInterfaceType(final OvsdbTerminationPointAugmentation terminationPoint, final Interface ovsInterface) { Class<? extends InterfaceTypeBase> mdsaltype = terminationPoint.getInterfaceType(); if (mdsaltype != null) { ovsInterface.setType(SouthboundMapper.createOvsdbInterfaceType(mdsaltype)); } }
return false; if (!Objects.equals(_interfaceType, other.getInterfaceType())) { return false;
southbound.getOptionsValue(intf.getOptions(), "remote_ip")); deleteTunnelPort(srcNode, MdsalHelper.createOvsdbInterfaceType(intf.getInterfaceType()), src, dst); } catch (Exception e) {
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(); }