Project

General

Profile

Actions

Bug #10647

closed

FRR BGP Advanced > Aggregated Addresses ignores ipv6 subnets

Added by Max Maton almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
FRR
Target version:
-
Start date:
06/09/2020
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:
All

Description

The php script generating the bgp.conf file only writes out the configuration if the subnet is an ipv4 subnet: https://github.com/pfsense/FreeBSD-ports/blob/9fdee68a7df90cab70451ac684e2a8b21d824b08/net/pfSense-pkg-frr/files/usr/local/pkg/frr/inc/frr_bgp.inc#L286

Adding this below the block that writes out the ipv4 aggregations fixes the issue:

        $advconf .= "address-family ipv6 unicast\n";
        /* Aggregate Behavior */
        foreach ($frr_bgpadv_conf['row'] as $aggr) {
                if (is_subnetv6($aggr['aggregateaddr'])) {
                        $advconf .= "    aggregate-address {$aggr['aggregateaddr']}";
                        if (!empty($aggr['aggregateasset'])) {
                                $advconf .= " as-set";
                        }
                        if (!empty($aggr['aggregatesummaryonly'])) {
                                $advconf .= " summary-only";
                        }
                        $advconf .= "\n";
                }
        }
        $advconf .= "exit-address-family\n";
Actions

Also available in: Atom PDF