diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-07-13 10:41:27 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-07-17 08:16:43 +0000 |
commit | d2664a4f307a833e293b2dfbe44d9ab6579eef2d (patch) | |
tree | ea8d05794c7d110f7a15d18874678925db44e230 /infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpConfiguration.java | |
parent | a4a488f7cdd04498bfcda068bf171516a9afe4f0 (diff) |
HONEYCOMB-369: configurable BGP peers
BGP peer configuration is no longer read from bgp-peer.json file.
Netconf/Restconf is can be used instead.
BGP peer configuration in HC follows openconfig-extensions model (as in ODL BGP):
* http://docs.opendaylight.org/en/stable-boron/user-guide/bgp-user-guide.html#bgp-peering
* http://docs.opendaylight.org/en/stable-boron/user-guide/bgp-user-guide.html#bgp-application-peer-and-programmable-rib
Change-Id: I91aa6c4fc0923edbacf6cd10abd3957569a4f8c6
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit a3d562afdd96d4c37fe608af99f364e879ee92b6)
Diffstat (limited to 'infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpConfiguration.java')
-rw-r--r-- | infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpConfiguration.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpConfiguration.java b/infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpConfiguration.java index 9335fb33d..56a00ecb0 100644 --- a/infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpConfiguration.java +++ b/infra/northbound/bgp/src/main/java/io/fd/honeycomb/infra/bgp/BgpConfiguration.java @@ -45,6 +45,8 @@ public class BgpConfiguration { public Optional<String> bgpMultiplePaths; @InjectConfig("bgp-send-max-paths") public Optional<Integer> bgpSendMaxMaths; + @InjectConfig("bgp-network-instance-name") + public String bgpNetworkInstanceName; @InjectConfig("bgp-protocol-instance-name") public Optional<String> bgpProtocolInstanceName; @InjectConfig("bgp-netty-threads") @@ -57,6 +59,7 @@ public class BgpConfiguration { .add("bgpAsNumber", bgpAsNumber) .add("bgpMultiplePaths", bgpMultiplePaths) .add("bgpSendMaxMaths", bgpSendMaxMaths) + .add("bgpNetworkInstanceName", bgpNetworkInstanceName) .add("bgpProtocolInstanceName", bgpProtocolInstanceName) .add("bgpNettyThreads", bgpNettyThreads) .toString(); |