From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D9B4645DAB; Tue, 26 Nov 2024 16:09:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A117E40268; Tue, 26 Nov 2024 16:09:37 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 83E674025F for ; Tue, 26 Nov 2024 16:09:36 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D45C1150C; Tue, 26 Nov 2024 07:10:05 -0800 (PST) Received: from localhost.localdomain (unknown [10.57.59.58]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2508A3F5A1; Tue, 26 Nov 2024 07:09:35 -0800 (PST) From: Luca Vizzarro To: dev@dpdk.org, Patrick Robb Cc: Luca Vizzarro , Paul Szczepanek Subject: [PATCH] dts: remove leftover Node methods Date: Tue, 26 Nov 2024 15:09:29 +0000 Message-ID: <20241126150929.2843601-1-luca.vizzarro@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The "remove redundant test suite" removed an unused test suite and some dead code with it. Some dead code which references now-removed symbols, remained though. This removes this code, therefore fixing the related mypy errors. Fixes: e3ab9dd5cd5d ("dts: remove redundant test suite") Signed-off-by: Luca Vizzarro Reviewed-by: Paul Szczepanek --- dts/framework/testbed_model/node.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/dts/framework/testbed_model/node.py b/dts/framework/testbed_model/node.py index 85144f6f4e..c1844ecd5d 100644 --- a/dts/framework/testbed_model/node.py +++ b/dts/framework/testbed_model/node.py @@ -14,8 +14,6 @@ """ from abc import ABC -from ipaddress import IPv4Interface, IPv6Interface -from typing import Union from framework.config import ( OS, @@ -192,30 +190,6 @@ def _setup_hugepages(self) -> None: self.config.hugepages.force_first_numa, ) - def configure_port_state(self, port: Port, enable: bool = True) -> None: - """Enable/disable `port`. - - Args: - port: The port to enable/disable. - enable: :data:`True` to enable, :data:`False` to disable. - """ - self.main_session.configure_port_state(port, enable) - - def configure_port_ip_address( - self, - address: Union[IPv4Interface, IPv6Interface], - port: Port, - delete: bool = False, - ) -> None: - """Add an IP address to `port` on this node. - - Args: - address: The IP address with mask in CIDR format. Can be either IPv4 or IPv6. - port: The port to which to add the address. - delete: If :data:`True`, will delete the address from the port instead of adding it. - """ - self.main_session.configure_port_ip_address(address, port, delete) - def close(self) -> None: """Close all connections and free other resources.""" if self.main_session: -- 2.43.0