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 8F22D1FF16F for ; Tue, 19 Aug 2025 15:17:57 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C8CFB156A3; Tue, 19 Aug 2025 15:19:26 +0200 (CEST) From: Gabriel Goller To: pve-devel@lists.proxmox.com Date: Tue, 19 Aug 2025 15:19:08 +0200 Message-ID: <20250819131916.324392-10-g.goller@proxmox.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250819131916.324392-1-g.goller@proxmox.com> References: <20250819131916.324392-1-g.goller@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1755609518316 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.006 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 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-gui-tests 1/1] fabrics: add screenshots for IS-IS fabric and nodes 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" Add IS-IS fabric and node screenshots. Signed-off-by: Gabriel Goller --- create_fabrics_screenshots | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/create_fabrics_screenshots b/create_fabrics_screenshots index a83bb222d44b..c0e67f68063c 100755 --- a/create_fabrics_screenshots +++ b/create_fabrics_screenshots @@ -14,6 +14,7 @@ sub prepare_fabrics { my ($conn) = @_; eval { # might not exist, so ignore any errors + $conn->delete("/cluster/sdn/fabrics/fabric/test3"); $conn->delete("/cluster/sdn/fabrics/fabric/test2"); $conn->delete("/cluster/sdn/fabrics/fabric/test1"); }; @@ -30,14 +31,24 @@ sub prepare_fabrics { ip_prefix => "198.51.100.0/24", protocol => "ospf", }; + my $isis = { + id => "test3", + ip_prefix => "192.0.15.0/24", + hello_interval => "1", + protocol => "isis", + }; $conn->post("/cluster/sdn/fabrics/fabric", $openfabric); $conn->post("/cluster/sdn/fabrics/fabric", $ospf); + $conn->post("/cluster/sdn/fabrics/fabric", $isis); } sub prepare_nodes { my ($conn) = @_; eval { # might not exist, so ignore any errors + $conn->delete("/cluster/sdn/fabrics/node/test3/pve0"); + $conn->delete("/cluster/sdn/fabrics/node/test3/pve1"); + $conn->delete("/cluster/sdn/fabrics/node/test3/pve2"); $conn->delete("/cluster/sdn/fabrics/node/test2/pve0"); $conn->delete("/cluster/sdn/fabrics/node/test2/pve1"); $conn->delete("/cluster/sdn/fabrics/node/test2/pve2"); @@ -53,6 +64,7 @@ sub prepare_nodes { my $last_octet = $i + 1; my $ospf_iface = ($i * 2) + 19; my $openfabric_iface = ($i * 2) + 25; + my $isis_iface = ($i * 2) + 30; my $ospf_node = { node_id => $node_name, @@ -72,9 +84,19 @@ sub prepare_nodes { ], protocol => "openfabric", }; + my $isis_node = { + node_id => $node_name, + ip => "192.0.15.$last_octet", + interfaces => [ + "name=ens$isis_iface", + "name=ens" . ($isis_iface + 1) + ], + protocol => "isis", + }; $conn->post("/cluster/sdn/fabrics/node/test1/", $openfabric_node); $conn->post("/cluster/sdn/fabrics/node/test2/", $ospf_node); + $conn->post("/cluster/sdn/fabrics/node/test3/", $isis_node); } } @@ -131,6 +153,18 @@ sub create_fabrics_ui_screenshots { $gui->element_screenshot("gui-datacenter-create-fabric-openfabric.png", $window); $gui->window_close($window); + $menu = $gui->find_button('Add Fabric', $panel)->click(); + $gui->find_menu_item('IS-IS')->click(); + + $window = $gui->find_dialog("Create: IS-IS"); + $gui->setValue($window, 'id', 'test3'); + $gui->setValue($window, 'ip_prefix', '192.0.2.0/24'); + $gui->setValue($window, 'hello_interval', '1'); + + $gui->element_screenshot("gui-datacenter-create-fabric-isis.png", $window); + $gui->window_close($window); + + $menu = $gui->find_button('Add Fabric', $panel)->click(); $gui->find_menu_item('OSPF')->click(); @@ -164,6 +198,15 @@ sub create_fabrics_ui_screenshots { $gui->element_screenshot("gui-datacenter-create-node-ospf.png", $window); $gui->window_close($window); + open_add_node_panel($gui, "isis"); + sleep_ms(500); + + $window = $gui->find_dialog("Create: Node"); + $gui->setValue($window, 'ip', '198.51.100.1'); + select_interfaces($gui, "ens19", "ens20"); + $gui->element_screenshot("gui-datacenter-create-node-isis.png", $window); + $gui->window_close($window); + # get fabric overview prepare_nodes($conn); sleep_ms(250); -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel