use of org.onosproject.net.behaviour.protection.ProtectedTransportEndpointState in project onos by opennetworkinglab.
the class OplinkSwitchProtection method getProtectionEndpointStates.
@Override
public CompletableFuture<Map<ConnectPoint, ProtectedTransportEndpointState>> getProtectionEndpointStates() {
ConnectPoint cp = new ConnectPoint(data().deviceId(), PortNumber.portNumber(VIRTUAL_PORT));
Map<ConnectPoint, ProtectedTransportEndpointState> protectedGroups = new HashMap<>();
CompletableFuture result = new CompletableFuture<Map<ConnectPoint, ProtectedTransportEndpointState>>();
protectedGroups.put(cp, getProtectedTransportEndpointState());
result.complete(protectedGroups);
return result;
}
Aggregations