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 578D244161; Wed, 5 Jun 2024 19:53:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 46C3B402E1; Wed, 5 Jun 2024 19:53:03 +0200 (CEST) Received: from mail-oa1-f97.google.com (mail-oa1-f97.google.com [209.85.160.97]) by mails.dpdk.org (Postfix) with ESMTP id 9ECF8402C9 for ; Wed, 5 Jun 2024 19:53:01 +0200 (CEST) Received: by mail-oa1-f97.google.com with SMTP id 586e51a60fabf-2510648fbacso30467fac.1 for ; Wed, 05 Jun 2024 10:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1717609981; x=1718214781; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zL+fM4r8aEA1+I27DZOBQDLZsah11zjJAFRGazTBdPM=; b=ciskd103q+3QOTjd3FEa+KQvDEWp7eUv4LnzR8+F/GtPn56R2KgeC2U6xMmCVo/Oro LcYYH5kkJld7myvVF5aJq/KgygxJEBNL/prUlWyjdMFnsLoDP/fWO2uC/VOTd3XrAqyL PvrArkIAnP+Ssw56TgbcA8ZA3y8fdO9SAB4ns= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717609981; x=1718214781; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zL+fM4r8aEA1+I27DZOBQDLZsah11zjJAFRGazTBdPM=; b=A7YQ0P82vb3ShWflWhEFah9RQgHvYrpdgqKXP4ICItDLtvRI/TDbhmsAX5UgphWSQm 5MSE2ZE8KWXFA17AJmyzx6l8ndSHf6HLNhHkZSqSBOHfkeBFvKShoTqUWUH5WzBu5u7K 4w/M/2WTbG4zaLPBWHoWemqbnKc8w/f2UOylVVDDooYm56u6UwYaitPkuuPme4EsU0nt B2hLojRgn8WM2FrkdBsZ//L9E4+7Uc/wPKMMUP5hma1tJtJi2wqf7brLx67NnO4xEJUN 80iPBRYAkcm4oZexVt6zoFmWy2Y/sl53Ty1DUT1udWSWyOM8NHb7Gt5MZGq4iLbT3/JU UkYQ== X-Gm-Message-State: AOJu0YwNsRE1ryfGvG0i9sWhjk9z/tdr7rX5PnJLrTF0IOdybCpXuPak uzHfT9HJ+P2ZjnDrzTn7Uw5iwjYuiY10CSkWKJVpjZ3kOEF9MHQJmyY6RLay81GPaB5umFMJM4p Qr/zKFib5XYdcOiKJqzjch+FoWhuZUzEvVZ0XprsjygjFNdSF X-Google-Smtp-Source: AGHT+IGabRBQ/I2UXPF42KTKq23ZMVUz2F5rc+WFWxpysqrwD1MaTJBhYOB/RkHqTIh2E645bhzvsEF11zxG X-Received: by 2002:a05:6871:3a2a:b0:24f:c2cf:444b with SMTP id 586e51a60fabf-25121daa2b3mr4060680fac.27.1717609980926; Wed, 05 Jun 2024 10:53:00 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id 586e51a60fabf-2508540e7c7sm299132fac.42.2024.06.05.10.53.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2024 10:53:00 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::1083]) by postal.iol.unh.edu (Postfix) with ESMTP id EBC8F605C373; Wed, 5 Jun 2024 13:52:59 -0400 (EDT) From: jspewock@iol.unh.edu To: Luca.Vizzarro@arm.com, probb@iol.unh.edu, npratte@iol.unh.edu, paul.szczepanek@arm.com, juraj.linkes@pantheon.tech, yoan.picchi@foss.arm.com, thomas@monjalon.net, wathsala.vithanage@arm.com, Honnappa.Nagarahalli@arm.com Cc: dev@dpdk.org, Jeremy Spewock Subject: [RFC PATCH v1 0/2] dts: replace XML-RPC server Date: Wed, 5 Jun 2024 13:52:25 -0400 Message-ID: <20240605175227.7003-1-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.45.1 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 From: Jeremy Spewock This series implements a new way to handle scapy interactions by using an interactive shell for managing the session instead of an XML-RPC server. One thing to note about these changes while reviewing is that I made the choice to use a Python interactive terminal and import the Scapy library instead of using a Scapy interactive shell directly. This choice was made because of inconsistencies in output that were encountered while using the Scapy shell due to its use of IPython for its interactive management. The pseudo-terminal used by paramiko does not support Cursor Placement Requests (CPR) which are required when using IPython. This does not limit functionality when compared to our previous implementation because we were only using the Scapy libraries from within Python in the previous implementation as well. Jeremy Spewock (2): dts: Add interactive shell for managing Scapy dts: Remove XML-RPC server for Scapy TG and instead us ScapyShell dts/framework/remote_session/__init__.py | 1 + dts/framework/remote_session/scapy_shell.py | 175 +++++++++++ .../testbed_model/traffic_generator/scapy.py | 284 +----------------- dts/framework/utils.py | 1 + 4 files changed, 191 insertions(+), 270 deletions(-) create mode 100644 dts/framework/remote_session/scapy_shell.py -- 2.45.1