From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id D68581FF183 for ; Wed, 2 Jul 2025 16:52:20 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CA99F1E805; Wed, 2 Jul 2025 16:51:36 +0200 (CEST) From: Gabriel Goller To: pve-devel@lists.proxmox.com Date: Wed, 2 Jul 2025 16:50:29 +0200 Message-Id: <20250702145101.894299-45-g.goller@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250702145101.894299-1-g.goller@proxmox.com> References: <20250702145101.894299-1-g.goller@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.068 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment PROLO_LEO1 0.1 Meta Catches all Leo drug variations so far SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH pve-network v4 09/21] test: isis: add test for standalone configuration X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" From: Stefan Hanreich With how the config generation worked before, it was not possible to create a standalone isis controller, since the FRR config was only generated with an existing EVPN controller. Since each controller is now responsible for creating its own configuration, it is possible to create a standalone isis controller without having any evpn controller configured. Add a test that covers that scenario. Co-authored-by: Gabriel Goller Signed-off-by: Stefan Hanreich --- .../expected_controller_config | 22 +++++++++++++++++++ .../isis_standalone/expected_sdn_interfaces | 1 + .../zones/evpn/isis_standalone/interfaces | 12 ++++++++++ .../zones/evpn/isis_standalone/sdn_config | 21 ++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 src/test/zones/evpn/isis_standalone/expected_controller_config create mode 100644 src/test/zones/evpn/isis_standalone/expected_sdn_interfaces create mode 100644 src/test/zones/evpn/isis_standalone/interfaces create mode 100644 src/test/zones/evpn/isis_standalone/sdn_config diff --git a/src/test/zones/evpn/isis_standalone/expected_controller_config b/src/test/zones/evpn/isis_standalone/expected_controller_config new file mode 100644 index 000000000000..5c9bf1adfbae --- /dev/null +++ b/src/test/zones/evpn/isis_standalone/expected_controller_config @@ -0,0 +1,22 @@ +frr version 8.5.2 +frr defaults datacenter +hostname localhost +log syslog informational +service integrated-vtysh-config +! +! +interface eth0 + ip router isis isis1 +! +interface eth1 + ip router isis isis1 +! +router isis isis1 + net 47.0023.0000.0000.0000.0000.0000.0000.1900.0004.00 + redistribute ipv4 connected level-1 + redistribute ipv6 connected level-1 + log-adjacency-changes +exit +! +line vty +! \ No newline at end of file diff --git a/src/test/zones/evpn/isis_standalone/expected_sdn_interfaces b/src/test/zones/evpn/isis_standalone/expected_sdn_interfaces new file mode 100644 index 000000000000..edc8ff918531 --- /dev/null +++ b/src/test/zones/evpn/isis_standalone/expected_sdn_interfaces @@ -0,0 +1 @@ +#version:1 diff --git a/src/test/zones/evpn/isis_standalone/interfaces b/src/test/zones/evpn/isis_standalone/interfaces new file mode 100644 index 000000000000..41ae25fda5c3 --- /dev/null +++ b/src/test/zones/evpn/isis_standalone/interfaces @@ -0,0 +1,12 @@ +auto vmbr0 +iface vmbr0 inet static + address 192.168.0.1/24 + gateway 192.168.0.254 + bridge-ports eth0 + bridge-stp off + bridge-fd 0 + +auto dummy1 +iface dummy1 inet static + address 10.0.0.1/32 + link-type dummy \ No newline at end of file diff --git a/src/test/zones/evpn/isis_standalone/sdn_config b/src/test/zones/evpn/isis_standalone/sdn_config new file mode 100644 index 000000000000..331051f3a2c9 --- /dev/null +++ b/src/test/zones/evpn/isis_standalone/sdn_config @@ -0,0 +1,21 @@ +{ + version => 1, + vnets => { + }, + zones => { + }, + controllers => { + ids => { + localhost => { + type => "isis", + 'isis-domain' => 'isis1', + 'isis-ifaces' => 'eth1,eth0', + 'isis-net' => "47.0023.0000.0000.0000.0000.0000.0000.1900.0004.00", + loopback => 'dummy1', + node => "localhost", + }, + }, + }, + subnets => { + }, +} -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel