-
Bug
-
Resolution: Done
-
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