import java.util.Random;
import javax.annotation.Nonnull;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
-import org.opendaylight.netconf.topology.NodeManager;
import org.opendaylight.netconf.topology.RoleChangeStrategy;
import org.opendaylight.netconf.topology.StateAggregator;
import org.opendaylight.netconf.topology.TopologyManager;
private final String topologyId;
private final TopologyManagerCallback delegateTopologyHandler;
- private final Map<NodeId, NodeManager> nodes = new HashMap<>();
private final Map<Address, TopologyManager> peers = new HashMap<>();
private TopologyManager masterPeer = null;
private final int id = new Random().nextInt();
public void onFailure(final Throwable t) {
// If the combined connection attempt failed, set the node to connection failed
LOG.debug("Futures aggregation failed");
- naSalNodeWriter.update(nodeId, nodes.get(nodeId).getFailedState(nodeId, node));
+ naSalNodeWriter.update(nodeId, delegateTopologyHandler.getFailedState(nodeId, node));
// FIXME disconnect those which succeeded
// just issue a delete on delegateTopologyHandler that gets handled on lower level
}
@Override
public void onFailure(final Throwable t) {
// If the combined connection attempt failed, set the node to connection failed
- naSalNodeWriter.update(nodeId, nodes.get(nodeId).getFailedState(nodeId, node));
+ naSalNodeWriter.update(nodeId, delegateTopologyHandler.getFailedState(nodeId, node));
// FIXME disconnect those which succeeded
// just issue a delete on delegateTopologyHandler that gets handled on lower level
}
public void onFailure(final Throwable t) {
// If the combined connection attempt failed, set the node to connection failed
LOG.debug("Futures aggregation failed");
- naSalNodeWriter.update(nodeId, nodes.get(nodeId).getFailedState(nodeId, null));
+ naSalNodeWriter.update(nodeId, delegateTopologyHandler.getFailedState(nodeId, null));
// FIXME disconnect those which succeeded
// just issue a delete on delegateTopologyHandler that gets handled on lower level
}