import com.google.common.base.Splitter;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
-
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
return null;
}
- return ovsdbNode.nonnullManagedNodeEntry();
+ return new ArrayList<>(ovsdbNode.nonnullManagedNodeEntry().values());
}
private void prepareIntegrationBridge(Node ovsdbNode, Node brIntNode) {
private void copyBridgeToConfig(Node brIntNode) {
NodeBuilder bridgeNodeBuilder = new NodeBuilder(brIntNode);
- bridgeNodeBuilder.setTerminationPoint(null);
+ bridgeNodeBuilder.setTerminationPoint(Collections.emptyMap());
InstanceIdentifier<Node> brNodeIid = SouthboundUtils.createInstanceIdentifier(brIntNode.getNodeId());
try {
SingleTransactionDataBroker.syncUpdate(dataBroker, LogicalDatastoreType.CONFIGURATION,
if (bridgeAug != null) {
DatapathId dpId = bridgeAug.getDatapathId();
if (dpId != null) {
- otherConfigs = bridgeAug.getBridgeOtherConfigs();
+ otherConfigs = new ArrayList<>(bridgeAug.getBridgeOtherConfigs().values());
if (otherConfigs == null) {
otherConfigs = Lists.newArrayList();
}
*/
@Nullable
private Node getBridgeNode(Uint64 dpId) {
- List<Node> ovsdbNodes = southboundUtils.getOvsdbNodes();
+ Map<NodeKey, Node> ovsdbNodes = southboundUtils.getOvsdbNodes();
if (null == ovsdbNodes) {
LOG.debug("Could not find any (?) ovsdb nodes");
return null;
}
- for (Node node : ovsdbNodes) {
+ for (Node node : ovsdbNodes.values()) {
if (!isIntegrationBridge(node)) {
continue;
}