Class BGPSessionPreferences
java.lang.Object
org.opendaylight.protocol.bgp.rib.impl.spi.BGPSessionPreferences
DTO for BGP Session preferences, that contains BGP Open message.
-
Constructor Summary
ConstructorDescriptionBGPSessionPreferences
(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 TypeMethodDescriptiongetBgpId()
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
getMyAs()
Returns my AS number.Gets a list of advertised bgp parameters.
-
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 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 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
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
Gets a list of advertised bgp parameters.- Returns:
- a list of advertised bgp parameters
-
getMd5Password
Optionally returns peer's MD5 password.- Returns:
- Encoded MD5 password.
-