* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.pcep.impl;
import static java.util.Objects.requireNonNull;
.setDeadtimer(open.getDeadTimer())
.setKeepalive(open.getKeepalive())
.setIpAddress(((InetSocketAddress) channel.localAddress()).getAddress().getHostAddress())
- .setSessionId(Uint16.valueOf(open.getSessionId().intValue()));
+ .setSessionId(open.getSessionId().toUint16());
return peerBuilder.build();
}
peerBuilder.setDeadtimer(open.getDeadTimer())
.setKeepalive(open.getKeepalive())
.setIpAddress(((InetSocketAddress) channel.remoteAddress()).getAddress().getHostAddress())
- .setSessionId(Uint16.valueOf(open.getSessionId().intValue()));
+ .setSessionId(open.getSessionId().toUint16());
return peerBuilder.build();
}