summaryrefslogtreecommitdiffstats
path: root/infra/northbound
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-09-26 13:00:02 +0200
committerMarek Gradzki <mgradzki@cisco.com>2017-10-02 11:12:39 +0000
commit3a802b928c49e95b2b56c2f9721c1adc15fcf8d8 (patch)
tree56ada9b9527f71176bcdd1a998b71d35a0fe30cb /infra/northbound
parent81fb040a378b27fa131feac4860b41b216f5308c (diff)
Fix BGP RIB link-state configuration
Change-Id: I896f1aae3b71e21bd6127aedf22faef07a132daf Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/northbound')
-rw-r--r--infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpRIBProvider.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpRIBProvider.java b/infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpRIBProvider.java
index 60d478325..5663b7c4d 100644
--- a/infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpRIBProvider.java
+++ b/infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpRIBProvider.java
@@ -47,6 +47,7 @@ import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev160614.AfiSafi2;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev160614.AfiSafi2Builder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev160614.LINKSTATE;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.RibId;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.rib.TablesKey;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.BgpId;
@@ -80,7 +81,8 @@ final class BgpRIBProvider extends ProviderTrait<RIB> {
final Ipv4Address routerId = new Ipv4Address(cfg.bgpBindingAddress.get());
final ClusterIdentifier clusterId = new ClusterIdentifier(routerId);
LOG.debug("Creating BGP RIB: routerId={}, asNumber={}", routerId, asNumber);
- // TODO configure other BGP Multiprotocol extensions:
+ // TODO(HONEYCOMB-395): should all afi-safis use the same send-max value?
+ // TODO(HONEYCOMB-363): configure other BGP Multiprotocol extensions:
final List<AfiSafi> afiSafi = ImmutableList.of(
new AfiSafiBuilder().setAfiSafiName(IPV4UNICAST.class)
.addAugmentation(AfiSafi2.class,
@@ -91,6 +93,11 @@ final class BgpRIBProvider extends ProviderTrait<RIB> {
.addAugmentation(AfiSafi2.class,
new AfiSafi2Builder().setReceive(cfg.isBgpMultiplePathsEnabled())
.setSendMax(cfg.bgpSendMaxMaths.get().shortValue()).build())
+ .build(),
+ new AfiSafiBuilder().setAfiSafiName(LINKSTATE.class)
+ .addAugmentation(AfiSafi2.class,
+ new AfiSafi2Builder().setReceive(cfg.isBgpMultiplePathsEnabled())
+ .setSendMax(cfg.bgpSendMaxMaths.get().shortValue()).build())
.build()
);
final Map<TablesKey, PathSelectionMode> pathSelectionModes =