public interface BGPSession extends AutoCloseable, io.netty.channel.ChannelInboundHandler
Closeable
interface.
If the session is up, it has to redirect messages to/from user. Handles also malformed messages and unknown requests.Modifier and Type | Method and Description |
---|---|
<T extends PeerConstraint> |
addDecoderConstraint(Class<T> constraintClass,
T constraint)
Add peer constraint to session pipeline decoder.
|
void |
closeWithoutMessage()
Close peer session without sending Notification message.
|
@NonNull List<AddressFamilies> |
getAdvertisedAddPathTableTypes()
Return a list with Add Path tables supported advertised and corresponding SendReceive mode.
|
default @NonNull GracefulRestartCapability |
getAdvertisedGracefulRestartCapability()
Return advertised graceful capability containing the list of tables which the peer has advertised to support,
restart time and restarting flags.
|
default @NonNull LlGracefulRestartCapability |
getAdvertisedLlGracefulRestartCapability()
Return advertised long-lived graceful capability containing the list of tables with stale time which
the peer has advertised to support.
|
@NonNull Set<BgpTableType> |
getAdvertisedTableTypes()
Return the list of tables which the peer has advertised to support.
|
@NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber |
getAsNumber()
Return the AS number which the peer advertises.
|
@NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address |
getBgpId()
Return the BGP router ID advertised by the peer.
|
io.netty.util.concurrent.ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit)
Schedule a task to be executed in the context of the session handling thread.
|
close
@NonNull Set<BgpTableType> getAdvertisedTableTypes()
@NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address getBgpId()
@NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getAsNumber()
@NonNull List<AddressFamilies> getAdvertisedAddPathTableTypes()
default @NonNull GracefulRestartCapability getAdvertisedGracefulRestartCapability()
default @NonNull LlGracefulRestartCapability getAdvertisedLlGracefulRestartCapability()
void closeWithoutMessage()
<T extends PeerConstraint> void addDecoderConstraint(Class<T> constraintClass, T constraint)
io.netty.util.concurrent.ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
command
- the task to executedelay
- the time from now to delay executionunit
- the time unit of the delay parameterCopyright © 2020 OpenDaylight. All rights reserved.