[PATCH pve-network] fix #5343 : isis: fix ipv6 && custom router config

Alexandre Derumier alexandre.derumier at groupe-cyllene.com
Tue Apr 16 18:52:32 CEST 2024


Signed-off-by: Alexandre Derumier <alexandre.derumier at groupe-cyllene.com>
---
 src/PVE/Network/SDN/Controllers/IsisPlugin.pm                | 3 ++-
 src/test/zones/evpn/isis/expected_controller_config          | 2 ++
 src/test/zones/evpn/isis_loopback/expected_controller_config | 2 ++
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/PVE/Network/SDN/Controllers/IsisPlugin.pm b/src/PVE/Network/SDN/Controllers/IsisPlugin.pm
index 6dab8d5..d9a3666 100644
--- a/src/PVE/Network/SDN/Controllers/IsisPlugin.pm
+++ b/src/PVE/Network/SDN/Controllers/IsisPlugin.pm
@@ -77,7 +77,8 @@ sub generate_controller_config {
     push(@{$isis->{""}}, @router_config);
 
     my @iface_config = (
-	"ip router isis $isis_domain"
+	"ip router isis $isis_domain",
+	"ipv6 router isis $isis_domain"
     );
 
     my @ifaces = PVE::Tools::split_list($isis_ifaces);
diff --git a/src/test/zones/evpn/isis/expected_controller_config b/src/test/zones/evpn/isis/expected_controller_config
index 9ec8c01..e3b8adb 100644
--- a/src/test/zones/evpn/isis/expected_controller_config
+++ b/src/test/zones/evpn/isis/expected_controller_config
@@ -11,9 +11,11 @@ exit-vrf
 !
 interface eth0
  ip router isis isis1
+ ipv6 router isis isis1
 !
 interface eth1
  ip router isis isis1
+ ipv6 router isis isis1
 !
 router bgp 65000
  bgp router-id 192.168.0.1
diff --git a/src/test/zones/evpn/isis_loopback/expected_controller_config b/src/test/zones/evpn/isis_loopback/expected_controller_config
index 5a7f5c9..8454291 100644
--- a/src/test/zones/evpn/isis_loopback/expected_controller_config
+++ b/src/test/zones/evpn/isis_loopback/expected_controller_config
@@ -11,9 +11,11 @@ exit-vrf
 !
 interface eth0
  ip router isis isis1
+ ipv6 router isis isis1
 !
 interface eth1
  ip router isis isis1
+ ipv6 router isis isis1
 !
 router bgp 65000
  bgp router-id 10.0.0.1
-- 
2.39.2




More information about the pve-devel mailing list