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

BGP Peer name forced to be Ipv4

    XMLWordPrintable

Details

    • Bug
    • Status: Verified
    • High
    • Resolution: Done
    • Oxygen
    • None
    • None
    • None

    Description

      in org.opendaylight.protocol.bgp.rib.impl.BGPPeer constructor

      peer name(String) is used as following

      super(rib.getInstanceIdentifier(), null, new IpAddress(new Ipv4Address(name)), afiSafisAdvertized,afiSafisGracefulAdvertized);

       

      When used in in org.opendaylight.protocol.bgp.rib.impl.config.BGPPeer

      this.bgpPeer = new BGPPeer(Ipv4Util.toStringIP(this.neighborAddress), rib,
      OpenConfigMappingUtil.toPeerRole(neighbor), getSimpleRoutingPolicy(neighbor),
      BgpPeer.this.rpcRegistry, afiSafisAdvertized, Collections.emptySet());

       

      Where this.neighorAddress is defined as following

      private final IpAddress neighborAddress;

       

      which is equal to how it is represented in model.

       

      Therefore its not possible right now to create V6 peer, because if v6 address is provided as neghbors address, it will fail at v4 regex that will be used by

      new IpAddress(new Ipv4Address(name)

       

      This problem was introduced by patch https://git.opendaylight.org/gerrit/#/c/49933/12/bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPPeer.java

      Affects nitrogen and carbon.SR2 also

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cdgasparini Claudio David Gasparini
            jsrnicek Ján Srniček
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: