Class BGPSessionPreferences


  • public final class BGPSessionPreferences
    extends Object
    DTO for BGP Session preferences, that contains BGP Open message.
    • 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 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 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.