import io.netty.util.concurrent.Promise;
import org.opendaylight.protocol.pcep.PCEPSessionListener;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.OpenObject;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.message.open.message.OpenBuilder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.Open;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.OpenBuilder;
import com.google.common.base.Preconditions;
private final int maxUnknownMessages;
public DefaultPCEPSessionNegotiator(final Timer timer, final Promise<PCEPSessionImpl> promise, final Channel channel,
- final PCEPSessionListener listener, final short sessionId, final int maxUnknownMessages, final OpenObject localPrefs) {
+ final PCEPSessionListener listener, final short sessionId, final int maxUnknownMessages, final Open localPrefs) {
super(timer, promise, channel);
this.maxUnknownMessages = maxUnknownMessages;
this.myLocalPrefs = new OpenBuilder().setKeepalive(localPrefs.getKeepalive()).setDeadTimer(localPrefs.getDeadTimer()).setSessionId(
this.listener = Preconditions.checkNotNull(listener);
}
- private final OpenObject myLocalPrefs;
+ private final Open myLocalPrefs;
@Override
- protected OpenObject getInitialProposal() {
+ protected Open getInitialProposal() {
return this.myLocalPrefs;
}
@Override
- protected PCEPSessionImpl createSession(final Timer timer, final Channel channel, final OpenObject localPrefs,
- final OpenObject remotePrefs) {
+ protected PCEPSessionImpl createSession(final Timer timer, final Channel channel, final Open localPrefs, final Open remotePrefs) {
return new PCEPSessionImpl(timer, this.listener, this.maxUnknownMessages, channel, localPrefs, remotePrefs);
}
@Override
- protected boolean isProposalAcceptable(final OpenObject open) {
+ protected boolean isProposalAcceptable(final Open open) {
return true;
}
@Override
- protected OpenObject getCounterProposal(final OpenObject open) {
+ protected Open getCounterProposal(final Open open) {
return null;
}
@Override
- protected OpenObject getRevisedProposal(final OpenObject suggestion) {
+ protected Open getRevisedProposal(final Open suggestion) {
return this.myLocalPrefs;
}
}