diff --git a/src/actions/gobgp_action.cpp b/src/actions/gobgp_action.cpp index 0b08832c..2a821d6b 100644 --- a/src/actions/gobgp_action.cpp +++ b/src/actions/gobgp_action.cpp @@ -121,6 +121,10 @@ bool gobgp_announce_host = false; bgp_community_attribute_element_t bgp_community_host; bgp_community_attribute_element_t bgp_community_subnet; +// IPv6 +bool gobgp_announce_whole_subnet_ipv6 = false; +bool gobgp_announce_host_ipv6 = false; + bgp_community_attribute_element_t bgp_community_host_ipv6; bgp_community_attribute_element_t bgp_community_subnet_ipv6;; @@ -141,6 +145,15 @@ void gobgp_action_init() { gobgp_announce_whole_subnet = configuration_map["gobgp_announce_whole_subnet"] == "on"; } + if (configuration_map.count("gobgp_announce_host_ipv6")) { + gobgp_announce_host_ipv6 = configuration_map["gobgp_announce_host_ipv6"] == "on"; + } + + if (configuration_map.count("gobgp_announce_whole_subnet_ipv6")) { + gobgp_announce_whole_subnet_ipv6 = configuration_map["gobgp_announce_whole_subnet_ipv6"] == "on"; + } + + // Set them to safe defaults bgp_community_host.asn_number = 65001; bgp_community_host.community_number = 666;