Allow binding all clusters to the coordinator
Even if the coordinator may not explicitly have a given cluster
This commit is contained in:
parent
3d08d722a1
commit
c0f9963caf
@ -524,27 +524,38 @@ SettingsPageBase {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < sourceEndpointComboBox.currentEndpoint.outputClusters.length; i++) {
|
if (destinationNodeComboBox.currentNode == root.coordinatorNode) {
|
||||||
var outputCluster = sourceEndpointComboBox.currentEndpoint.outputClusters[i]
|
for (var i = 0; i < sourceEndpointComboBox.currentEndpoint.outputClusters.length; i++) {
|
||||||
print("source has cluster", outputCluster.clusterId)
|
var outputCluster = sourceEndpointComboBox.currentEndpoint.outputClusters[i]
|
||||||
for (var j = 0; j < destinationEndpointComboBox.currentEndpoint.inputClusters.length; j++) {
|
ret.push(outputCluster)
|
||||||
var inputCluster = destinationEndpointComboBox.currentEndpoint.inputClusters[j]
|
}
|
||||||
print("destination has cluster", inputCluster.clusterId)
|
for (var i = 0; i < sourceEndpointComboBox.currentEndpoint.inputClusters.length; i++) {
|
||||||
if (inputCluster.clusterId === outputCluster.clusterId && inputCluster.direction !== outputCluster.direction) {
|
var inputCluster = sourceEndpointComboBox.currentEndpoint.inputClusters[i]
|
||||||
ret.push(outputCluster);
|
ret.push(inputCluster)
|
||||||
break;
|
}
|
||||||
|
} else {
|
||||||
|
for (var i = 0; i < sourceEndpointComboBox.currentEndpoint.outputClusters.length; i++) {
|
||||||
|
var outputCluster = sourceEndpointComboBox.currentEndpoint.outputClusters[i]
|
||||||
|
print("source has cluster", outputCluster.clusterId)
|
||||||
|
for (var j = 0; j < destinationEndpointComboBox.currentEndpoint.inputClusters.length; j++) {
|
||||||
|
var inputCluster = destinationEndpointComboBox.currentEndpoint.inputClusters[j]
|
||||||
|
print("destination has cluster", inputCluster.clusterId)
|
||||||
|
if (inputCluster.clusterId === outputCluster.clusterId && inputCluster.direction !== outputCluster.direction) {
|
||||||
|
ret.push(outputCluster);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
for (var i = 0; i < sourceEndpointComboBox.currentEndpoint.inputClusters.length; i++) {
|
||||||
for (var i = 0; i < sourceEndpointComboBox.currentEndpoint.inputClusters.length; i++) {
|
var inputCluster = sourceEndpointComboBox.currentEndpoint.inputClusters[i]
|
||||||
var inputCluster = sourceEndpointComboBox.currentEndpoint.inputClusters[i]
|
print("source has cluster", inputCluster.clusterId)
|
||||||
print("source has cluster", inputCluster.clusterId)
|
for (var j = 0; j < destinationEndpointComboBox.currentEndpoint.outputClusters.length; j++) {
|
||||||
for (var j = 0; j < destinationEndpointComboBox.currentEndpoint.outputClusters.length; j++) {
|
var outputCluster = destinationEndpointComboBox.currentEndpoint.outputClusters[j]
|
||||||
var outputCluster = destinationEndpointComboBox.currentEndpoint.outputClusters[j]
|
print("destination has cluster", outputCluster.clusterId)
|
||||||
print("destination has cluster", outputCluster.clusterId)
|
if (inputCluster.clusterId === outputCluster.clusterId && inputCluster.direction !== outputCluster.direction) {
|
||||||
if (inputCluster.clusterId === outputCluster.clusterId && inputCluster.direction !== outputCluster.direction) {
|
ret.push(inputCluster);
|
||||||
ret.push(inputCluster);
|
break;
|
||||||
break;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user