From 47864f1742e4e572038d1d4fbe1308038a4ba7da Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Fri, 26 Apr 2024 14:44:46 +0200 Subject: fix(IPsecUtil): Delete keywords no longer used When deleting ipsec nvf density suites, I removed the main L2 Robot keyword, but forgot to remove the associated L1 Python keywords. Change-Id: I0f72699dcab272aec5c531cdaacceed30356cd02 Signed-off-by: Vratko Polak --- resources/libraries/python/IPsecUtil.py | 43 --------------------------------- 1 file changed, 43 deletions(-) (limited to 'resources') diff --git a/resources/libraries/python/IPsecUtil.py b/resources/libraries/python/IPsecUtil.py index 19995e547d..bb46b49b14 100644 --- a/resources/libraries/python/IPsecUtil.py +++ b/resources/libraries/python/IPsecUtil.py @@ -1847,49 +1847,6 @@ class IPsecUtil: return ckeys, ikeys, spi_d["spi_1"], spi_d["spi_2"] return None - @staticmethod - def _create_ipsec_script_files( - dut: str, instances: int - ) -> List[TextIOWrapper]: - """Create script files for configuring IPsec in containers - - :param dut: DUT node on which to create the script files - :param instances: number of containers on DUT node - :type dut: str - :type instances: int - :returns: Created opened file handles. - :rtype: List[TextIOWrapper] - """ - scripts = [] - for cnf in range(0, instances): - script_filename = ( - f"/tmp/ipsec_create_tunnel_cnf_{dut}_{cnf + 1}.config" - ) - scripts.append(open(script_filename, "w", encoding="utf-8")) - return scripts - - @staticmethod - def _close_and_copy_ipsec_script_files( - dut: str, nodes: dict, instances: int, scripts: Sequence[TextIOWrapper] - ) -> None: - """Close created scripts and copy them to containers - - :param dut: DUT node on which to create the script files - :param nodes: VPP nodes - :param instances: number of containers on DUT node - :param scripts: dictionary holding the script files - :type dut: str - :type nodes: dict - :type instances: int - :type scripts: dict - """ - for cnf in range(0, instances): - scripts[cnf].close() - script_filename = ( - f"/tmp/ipsec_create_tunnel_cnf_{dut}_{cnf + 1}.config" - ) - scp_node(nodes[dut], script_filename, script_filename) - @staticmethod def vpp_ipsec_add_multiple_tunnels( nodes: dict, -- cgit 1.2.3-korg