summaryrefslogtreecommitdiff
path: root/dts/framework/testbed_model/linux_session.py
diff options
context:
space:
mode:
authorPaul Szczepanek <[email protected]>2024-11-15 15:41:53 +0000
committerPaul Szczepanek <[email protected]>2024-11-18 09:15:54 +0100
commite3ab9dd5cd5d5e7cb117507ba9580dae9706c1f5 (patch)
tree9110304ea926f56e21af0ce886ec1b6803b8f877 /dts/framework/testbed_model/linux_session.py
parent4f7b228f30a43d0a1ff27cbe0745cce85285d55c (diff)
dts: remove redundant test suite
The test suite served as a demonstration of the Scapy traffic generator implementation. Now that we have a test suite that uses DPDK code (via testpmd), there is no reason to keep the test suite, as there's no expectation it'll be actually used in any setup. Signed-off-by: Juraj Linkeš <[email protected]> Signed-off-by: Paul Szczepanek <[email protected]> Reviewed-by: Luca Vizzarro <[email protected]> Reviewed-by: Patrick Robb <[email protected]>
Diffstat (limited to 'dts/framework/testbed_model/linux_session.py')
-rw-r--r--dts/framework/testbed_model/linux_session.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/dts/framework/testbed_model/linux_session.py b/dts/framework/testbed_model/linux_session.py
index 544a665b83..f87efb8f18 100644
--- a/dts/framework/testbed_model/linux_session.py
+++ b/dts/framework/testbed_model/linux_session.py
@@ -10,8 +10,7 @@ This intermediate module implements the common parts of mostly POSIX compliant d
"""
import json
-from ipaddress import IPv4Interface, IPv6Interface
-from typing import TypedDict, Union
+from typing import TypedDict
from typing_extensions import NotRequired
@@ -179,25 +178,6 @@ class LinuxSession(PosixSession):
f"Attempted to get '{attr_name}' of port {port.pci}, but it doesn't exist."
)
- def configure_port_state(self, port: Port, enable: bool) -> None:
- """Overrides :meth:`~.os_session.OSSession.configure_port_state`."""
- state = "up" if enable else "down"
- self.send_command(f"ip link set dev {port.logical_name} {state}", privileged=True)
-
- def configure_port_ip_address(
- self,
- address: Union[IPv4Interface, IPv6Interface],
- port: Port,
- delete: bool,
- ) -> None:
- """Overrides :meth:`~.os_session.OSSession.configure_port_ip_address`."""
- command = "del" if delete else "add"
- self.send_command(
- f"ip address {command} {address} dev {port.logical_name}",
- privileged=True,
- verify=True,
- )
-
def configure_port_mtu(self, mtu: int, port: Port) -> None:
"""Overrides :meth:`~.os_session.OSSession.configure_port_mtu`."""
self.send_command(