Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-860

Session establishment does not work with AS number >= 2^31

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Neon, Fluorine SR2
    • Oxygen SR4
    • BGP
    • None

      In case AS number is configured to be greater than Integer.MAX_VALUE, the session will not be established:

      2019-01-28T09:55:45,915 | WARN  | epollEventLoopGroup-7-2 | AbstractBGPSessionNegotiator     | 210 - org.opendaylight.bgpcep.bgp-rib-impl - 0.9.4 | Unexpected negotiation failure
      
      java.lang.IllegalArgumentException: Invalid range: -2147483648, expected: [[0..65535]].
      
                      at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev171207.OpenBuilder.checkMyAsNumberRange(OpenBuilder.java:148) [204:org.opendaylight.bgpcep.bgp-parser-api:0.9.4]
      
                      at org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev171207.OpenBuilder.setMyAsNumber(OpenBuilder.java:153) [204:org.opendaylight.bgpcep.bgp-parser-api:0.9.4]
      
                      at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.startNegotiation(AbstractBGPSessionNegotiator.java:116) [210:org.opendaylight.bgpcep.bgp-rib-impl:0.9.4]
      
                      at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.channelActive(AbstractBGPSessionNegotiator.java:279) [210:org.opendaylight.bgpcep.bgp-rib-impl:0.9.4]
      
                      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:64) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.fireChannelActive(AbstractChannelHandlerContext.java:192) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.DefaultChannelPipeline$HeadContext.channelActive(DefaultChannelPipeline.java:1422) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:213) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:199) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.DefaultChannelPipeline.fireChannelActive(DefaultChannelPipeline.java:941) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:518) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:423) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:482) [106:io.netty.transport:4.1.30.Final]
      
                      at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [103:io.netty.common:4.1.30.Final]
      
                      at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) [103:io.netty.common:4.1.30.Final]
      
                      at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:326) [107:io.netty.transport-native-epoll:4.1.30.Final]
      
                      at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897) [103:io.netty.common:4.1.30.Final]
      
                      at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [103:io.netty.common:4.1.30.Final]
      
                      at java.lang.Thread.run(Thread.java:748) [?:?]

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: