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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BgpId
getBgpId()
Returns my BGP Identifier.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
getExpectedRemoteAs()
Returns expected remote AS number.int
getHoldTime()
Returns initial value of HoldTimer.Optional<byte[]>
getMd5Password()
Optionally returns peer's MD5 password.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
getMyAs()
Returns my AS number.List<BgpParameters>
getParams()
Gets a list of advertised bgp parameters.
-
-
-
Constructor Detail
-
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 numberhold
- preferred hold timer value, in secondsbgpId
- local BGP IdentifierremoteAs
- expected remote As Numberparams
- list of advertised parametersmd5Password
- - 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 Detail
-
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.
-
-