Skip to content

IPv6 in hostgroup in community edition #1044

Description

@wdoekes

I understand that not everything in Fastnetmon CE is IPv6 capable. E.g.:

if (fastnetmon_global_configuration.gobgp_announce_host_ipv6) {
IPv6UnicastAnnounce unicast_ipv6_announce;
std::vector<std::string> host_ipv6_communities;
// This one is an old configuration option which can carry only single community
host_ipv6_communities.push_back(fastnetmon_global_configuration.gobgp_community_host_ipv6);
for (auto community_string : host_ipv6_communities) {
bgp_community_attribute_element_t bgp_community_host;
if (!read_bgp_community_from_string(community_string, bgp_community_host)) {
logger << log4cpp::Priority::ERROR << "Could not decode BGP community for IPv6 host: " << community_string;
// We may have multiple communities and other communities may be correct, skip only broken one
continue;
}
unicast_ipv6_announce.add_community(bgp_community_host);
}
unicast_ipv6_announce.set_prefix(client_ipv6);
unicast_ipv6_announce.set_next_hop(gobgp_next_hop_host_ipv6);
gobgp_client.AnnounceUnicastPrefixLowLevelIPv6(unicast_ipv6_announce, is_withdrawal);
}
if (fastnetmon_global_configuration.gobgp_announce_whole_subnet_ipv6) {
logger << log4cpp::Priority::ERROR << "Sorry but we do not support IPv6 per subnet announces";
}

But also there is the impossibility of adding an IPv6 address to a hostgroup:

// hostgroup = new_host_group_name:11.22.33.44/32,....
split(splitted_new_host_group, value, boost::is_any_of(":"), boost::token_compress_on);
if (splitted_new_host_group.size() != 2) {
logger << log4cpp::Priority::ERROR << "We can't parse new host group";
return;
}

Are there any plans to improve this?

Thanks!
Walter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions