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

BGP Peer name forced to be Ipv4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • None
    • Oxygen
    • None
    • None

      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

       

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

              Created:
              Updated:
              Resolved: