[pve-devel] applied: [PATCH v2 pve-network] fix #5364: bgp|evpn: derivated router-id from mac address for ipv6 underlay
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Apr 22 14:03:03 CEST 2024
Am 12/04/2024 um 14:57 schrieb Alexandre Derumier:
> for ipv4, we use the iface ipv4 router-id as router-id need to 32bit.
>
> That's doesn't work for pure ipv6 underlay network.
>
> since https://www.rfc-editor.org/rfc/rfc6286, we can use any 32bit id,
> it's just need to be unique in the ASN.
>
> Simply use the last 4 bytes of iface mac address as unique id
>
>
> changelog V2: add missing test
>
> Signed-off-by: Alexandre Derumier <alexandre.derumier at groupe-cyllene.com>
> ---
> src/PVE/Network/SDN/Controllers/BgpPlugin.pm | 3 +-
> src/PVE/Network/SDN/Controllers/EvpnPlugin.pm | 7 ++-
> src/PVE/Network/SDN/Controllers/Plugin.pm | 21 +++++++++
> src/test/run_test_zones.pl | 8 ++++
> .../ipv6underlay/expected_controller_config | 45 +++++++++++++++++++
> .../evpn/ipv6underlay/expected_sdn_interfaces | 42 +++++++++++++++++
> src/test/zones/evpn/ipv6underlay/interfaces | 7 +++
> src/test/zones/evpn/ipv6underlay/sdn_config | 27 +++++++++++
> 8 files changed, 157 insertions(+), 3 deletions(-)
> create mode 100644 src/test/zones/evpn/ipv6underlay/expected_controller_config
> create mode 100644 src/test/zones/evpn/ipv6underlay/expected_sdn_interfaces
> create mode 100644 src/test/zones/evpn/ipv6underlay/interfaces
> create mode 100644 src/test/zones/evpn/ipv6underlay/sdn_config
>
>
applied, thanks!
More information about the pve-devel
mailing list