]> git.proxmox.com Git - pve-network.git/commit
fix #5364: bgp|evpn: derivated router-id from mac address for ipv6 underlay
authorAlexandre Derumier via pve-devel <pve-devel@lists.proxmox.com>
Fri, 12 Apr 2024 12:57:42 +0000 (14:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 11:56:48 +0000 (13:56 +0200)
commit7638f25336ab2c05edc8b0c306176b356da1a98e
tree5499068ad6e2a0ae359269371a1f3a7b6e10047a
parentc508ffa2de63d1b35a2447a2b89315061f0ff7e3
fix #5364: bgp|evpn: derivated router-id from mac address for ipv6 underlay

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@groupe-cyllene.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Network/SDN/Controllers/BgpPlugin.pm
src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
src/PVE/Network/SDN/Controllers/Plugin.pm
src/test/run_test_zones.pl
src/test/zones/evpn/ipv6underlay/expected_controller_config [new file with mode: 0644]
src/test/zones/evpn/ipv6underlay/expected_sdn_interfaces [new file with mode: 0644]
src/test/zones/evpn/ipv6underlay/interfaces [new file with mode: 0644]
src/test/zones/evpn/ipv6underlay/sdn_config [new file with mode: 0644]