Bug-4827: BGP Add-Path OpenConfig Support
[bgpcep.git] / bgp / openconfig-impl / src / main / java / org / opendaylight / protocol / bgp / openconfig / impl / openconfig / BGPNeighborProviderImpl.java
index 41d681ad587f191114c844a10e42f6de18bf7ad3..ce2b514dacee644b93a111020e9213dce4a960e8 100644 (file)
@@ -63,7 +63,8 @@ final class BGPNeighborProviderImpl extends AbstractBGPNeighborProvider<BGPPeerI
                     .build())
             .setAfiSafis(
                     new org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbor.group.AfiSafisBuilder()
-                    .setAfiSafi(OpenConfigUtil.toAfiSafis(config.getAdvertizedTables()))
+                    .setAfiSafi(OpenConfigUtil.toAfiSafis(config.getAdvertizedTables(),
+                            (afiSAfi, tableType) -> OpenConfigUtil.toNeigborAfiSafiMultiPath(afiSAfi, tableType, config.getAddPathCapabilities())))
                     .build())
             .setTimers(new TimersBuilder().setConfig(
                     new org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbor.group.timers.ConfigBuilder()