private String getLocalip(Node ovsdbNode) { Preconditions.checkNotNull(ovsdbNode, "The ovsdbNode was null"); String localIp = null; if (ovsdbNode != null) { OvsdbNodeAugmentation ovsdbNodeAugmentation = ovsdbNode.getAugmentation(OvsdbNodeAugmentation.class); if (ovsdbNodeAugmentation != null && ovsdbNodeAugmentation.getOpenvswitchOtherConfigs() != null) { localIp = southbound.getOtherConfig(ovsdbNode, OvsdbTables.OPENVSWITCH, TUNNEL_ENDPOINT_KEY); } } if (localIp == null) { LOG.warn("local_ip was not found for node: {}", ovsdbNode); localIp = ""; } return localIp; }
/** * Get OpenvSwitch other-config by key. * @param node OVSDB node * @param key key to extract from other-config * @return the value for key or null if key not found */ public String getOpenvswitchOtherConfig(Node node, String key) { OvsdbNodeAugmentation ovsdbNode = node.getAugmentation(OvsdbNodeAugmentation.class); if (ovsdbNode == null) { Node nodeFromReadOvsdbNode = readOvsdbNode(node); if (nodeFromReadOvsdbNode != null) { ovsdbNode = nodeFromReadOvsdbNode.getAugmentation(OvsdbNodeAugmentation.class); } } if (ovsdbNode != null && ovsdbNode.getOpenvswitchOtherConfigs() != null) { for (OpenvswitchOtherConfigs openvswitchOtherConfigs : ovsdbNode.getOpenvswitchOtherConfigs()) { if (openvswitchOtherConfigs.getOtherConfigKey().equals(key)) { return openvswitchOtherConfigs.getOtherConfigValue(); } } } return null; } }
return false; if (!Objects.equals(_openvswitchOtherConfigs, other.getOpenvswitchOtherConfigs())) { return false;
if (ovsdbNode != null && ovsdbNode.getOpenvswitchOtherConfigs() != null) { for (OpenvswitchOtherConfigs openvswitchOtherConfigs : ovsdbNode.getOpenvswitchOtherConfigs()) { if (openvswitchOtherConfigs.getOtherConfigKey().equals(key)) { return openvswitchOtherConfigs.getOtherConfigValue();
if (ovsdbNode != null && ovsdbNode.getOpenvswitchOtherConfigs() != null) { for (OpenvswitchOtherConfigs openvswitchOtherConfigs : ovsdbNode.getOpenvswitchOtherConfigs()) { if (openvswitchOtherConfigs.getOtherConfigKey().equals(key)) { return openvswitchOtherConfigs.getOtherConfigValue();
public OvsdbNodeAugmentationBuilder(OvsdbNodeAugmentation base) { this._autoattach = base.getAutoattach(); this._connectionInfo = base.getConnectionInfo(); this._datapathTypeEntry = base.getDatapathTypeEntry(); this._dbVersion = base.getDbVersion(); this._interfaceTypeEntry = base.getInterfaceTypeEntry(); this._managedNodeEntry = base.getManagedNodeEntry(); this._managerEntry = base.getManagerEntry(); this._openvswitchExternalIds = base.getOpenvswitchExternalIds(); this._openvswitchOtherConfigs = base.getOpenvswitchOtherConfigs(); this._ovsVersion = base.getOvsVersion(); this._qosEntries = base.getQosEntries(); this._queues = base.getQueues(); }
List<OpenvswitchOtherConfigs> otherConfigs = ovsdbNode.getOpenvswitchOtherConfigs(); if (otherConfigs != null) { try {
List<OpenvswitchOtherConfigs> otherConfigs = this.initialCreateData.getOpenvswitchOtherConfigs(); if (otherConfigs != null) { try {