Class BGPSessionPreferences

java.lang.Object
org.opendaylight.protocol.bgp.rib.impl.spi.BGPSessionPreferences

public final class BGPSessionPreferences extends Object
DTO for BGP Session preferences, that contains BGP Open message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BGPSessionPreferences(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber as, int hold, BgpId bgpId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber remoteAs, List<BgpParameters> params)
     
    BGPSessionPreferences(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber as, int hold, BgpId bgpId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber remoteAs, List<BgpParameters> params, Optional<byte[]> md5Password)
    Creates a new DTO for Open message.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns my BGP Identifier.
    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
    Returns expected remote AS number.
    int
    Returns initial value of HoldTimer.
    Optional<byte[]>
    Optionally returns peer's MD5 password.
    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
    Returns my AS number.
    Gets a list of advertised bgp parameters.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BGPSessionPreferences

      public BGPSessionPreferences(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber as, int hold, BgpId bgpId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber remoteAs, List<BgpParameters> params, Optional<byte[]> md5Password)
      Creates a new DTO for Open message.
      Parameters:
      as - local AS number
      hold - preferred hold timer value, in seconds
      bgpId - local BGP Identifier
      remoteAs - expected remote As Number
      params - list of advertised parameters
      md5Password - - md5password
    • BGPSessionPreferences

      public BGPSessionPreferences(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber as, int hold, BgpId bgpId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber remoteAs, List<BgpParameters> params)
  • Method Details

    • getMyAs

      public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getMyAs()
      Returns my AS number.
      Returns:
      AS number
    • getHoldTime

      public int getHoldTime()
      Returns initial value of HoldTimer.
      Returns:
      initial value of HoldTimer
    • getBgpId

      public BgpId getBgpId()
      Returns my BGP Identifier.
      Returns:
      BGP identifier
    • getExpectedRemoteAs

      public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getExpectedRemoteAs()
      Returns expected remote AS number.
      Returns:
      AS number
    • getParams

      public List<BgpParameters> getParams()
      Gets a list of advertised bgp parameters.
      Returns:
      a list of advertised bgp parameters
    • getMd5Password

      public Optional<byte[]> getMd5Password()
      Optionally returns peer's MD5 password.
      Returns:
      Encoded MD5 password.