From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id A89451FF165 for ; Thu, 22 May 2025 18:26:36 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 37680BD2B; Thu, 22 May 2025 18:25:55 +0200 (CEST) From: Stefan Hanreich To: pve-devel@lists.proxmox.com Date: Thu, 22 May 2025 18:16:58 +0200 Message-Id: <20250522161731.537011-43-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250522161731.537011-1-s.hanreich@proxmox.com> References: <20250522161731.537011-1-s.hanreich@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.264 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 KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods PROLO_LEO1 0.1 Meta Catches all Leo drug variations so far RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [PATCH pve-network v3 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" 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 0000000..5c9bf1a --- /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 0000000..edc8ff9 --- /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 0000000..41ae25f --- /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 0000000..331051f --- /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