private void createPortOtherConfig( final OvsdbTerminationPointAugmentation terminationPoint, final Port ovsPort) { List<PortOtherConfigs> portOtherConfigs = terminationPoint.getPortOtherConfigs(); if (portOtherConfigs != null && !portOtherConfigs.isEmpty()) { try { ovsPort.setOtherConfig(YangUtils.convertYangKeyValueListToMap(portOtherConfigs, PortOtherConfigs::getOtherConfigKey, PortOtherConfigs::getOtherConfigValue)); } catch (NullPointerException e) { LOG.warn("Incomplete OVSDB port other_config", e); } } }
private void updatePortOtherConfig( final OvsdbTerminationPointAugmentation terminationPoint, final Port ovsPort) { List<PortOtherConfigs> portOtherConfigs = terminationPoint.getPortOtherConfigs(); if (portOtherConfigs != null && !portOtherConfigs.isEmpty()) { try { ovsPort.setOtherConfig(YangUtils.convertYangKeyValueListToMap(portOtherConfigs, PortOtherConfigs::getOtherConfigKey, PortOtherConfigs::getOtherConfigValue)); } catch (NullPointerException e) { LOG.warn("Incomplete OVSDB port other_config", e); } } }
return false; if (!Objects.equals(_portOtherConfigs, other.getPortOtherConfigs())) { return false;
List <OvsdbTerminationPointAugmentation> ports = extractTerminationPointAugmentations(node); for (OvsdbTerminationPointAugmentation port : ports) { if (port != null && port.getPortOtherConfigs() != null) { for (PortOtherConfigs portOtherConfigs : port.getPortOtherConfigs()) { if (portOtherConfigs.getOtherConfigKey().equals(key)) { return portOtherConfigs.getOtherConfigValue();
List <OvsdbTerminationPointAugmentation> ports = extractTerminationPointAugmentations(node); for (OvsdbTerminationPointAugmentation port : ports) { if (port != null && port.getPortOtherConfigs() != null) { for (PortOtherConfigs portOtherConfigs : port.getPortOtherConfigs()) { if (portOtherConfigs.getOtherConfigKey().equals(key)) { return portOtherConfigs.getOtherConfigValue();
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(); }