From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <pve-devel-bounces@lists.proxmox.com> Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 65B571FF164 for <inbox@lore.proxmox.com>; Fri, 28 Mar 2025 18:22:44 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3A4B59F1F; Fri, 28 Mar 2025 18:22:23 +0100 (CET) From: Gabriel Goller <g.goller@proxmox.com> To: pve-devel@lists.proxmox.com Date: Fri, 28 Mar 2025 18:13:22 +0100 Message-Id: <20250328171340.885413-35-g.goller@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250328171340.885413-1-g.goller@proxmox.com> References: <20250328171340.885413-1-g.goller@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.074 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 07/17] 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 <pve-devel.lists.proxmox.com> List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe> List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/> List-Post: <mailto:pve-devel@lists.proxmox.com> List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help> List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe> Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com> From: Stefan Hanreich <s.hanreich@proxmox.com> With how the config generation worked before, it was not possible to create a standalone isis 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. Add a test that covers that scenario. Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com> Co-authored-by: Gabriel Goller <g.goller@proxmox.com> Signed-off-by: Gabriel Goller <g.goller@proxmox.com> --- .../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