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 24E0D4614B; Thu, 30 Jan 2025 14:56:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B340D4066A; Thu, 30 Jan 2025 14:56:05 +0100 (CET) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) by mails.dpdk.org (Postfix) with ESMTP id E302F402E7 for ; Thu, 30 Jan 2025 14:56:04 +0100 (CET) Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-467b086e0easo3533951cf.1 for ; Thu, 30 Jan 2025 05:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1738245364; x=1738850164; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9e3zFR4xRS2BqlO4kUMi2QOR9oXen2SktaEt3eX7vNU=; b=hQbtMEbEyhYgL1ZmwE2Kj0vrqsrHMo6Qz5mDkawEmNSBRogka+cf1OhMsGwoifayDN aQQj189PoWKih7IxfcF7WZ13RNK+ofMY9aSgGdUHxMtTCYjKqCwbLt6Bwc4VmSZ+Z+Zr TCpP2Nv5pA5RMOWd6xLY4ulZQRXO47w0s2hNk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738245364; x=1738850164; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9e3zFR4xRS2BqlO4kUMi2QOR9oXen2SktaEt3eX7vNU=; b=TCAiZTGFlAf//FozVlN6yhUOG/qZ/MVYlHXwlq2ugbAQ5XtbESHACrAhTc/5bXN2fO BRrbVu2QJ3G5jB9leOfB4gnHSm8FRCcFO8+MoZUAXi0Y+05LJp7o6TaNml8/fx60+zCU PFZ8UHgpgzHx20l+kSjP3YEJMFSj1T8nEDGh58khNl2odxSIh9lLZrygRpNvGVNBb9kE yQIsnNQr+n/7B9nWh4XfvB9+z/a/BPiT3WvMDCv8uBrHK4AodDGNMd7xhJK4LYsBRWyQ MpJ1lVU1kFlqLxEAe7jNXM5Oy9x0D9ly5BDtB52+0k0toE4peiyPWm8BqYZ7l6yLpcdi 3Kvw== X-Gm-Message-State: AOJu0YyhmBIcjZ/Gdkmpw3BaZNBcTX4B9TX4jNpVFq3O14iRO5hyNBCH +2wJFcSlH6aGYMBICGHSJoihiDWQj3hvke7jm3zvjtTH/l6wvgRx1RdZa+QML6M= X-Gm-Gg: ASbGncvdzJMTx6KmD9McF9AUk0mVBtWkiPuwpevg47zW3TmpQSo6DCove7cKcEC7h27 csj4Evrqpvm0abE8ZbZlBJ9EeX3fd9deynJXtVqTLJFp0GE+1o/I9ICHxFuvdKZUeyAYhav7zvC VD9a9Y6fPWtoFaBCnJAl2Ae+1jEzNXG2k93EGOh8MbCnZ+H0QQfaOpGf8hMo7M4gsDrTPk8PzPq tnX7dsl8W7GnElNwLUkcpvZ9ppN+PAVHvQVbnjHJVEQIwDCP31Rn77UZNm7n2+IO057OL3tq3Wl iBmTPQ== X-Google-Smtp-Source: AGHT+IFS5cqG3HgxPp9iJ20RLnNP6RViF3NC3VQWfndmDQ6jKjF5Opf9X/wayTy+AmlhcJjXpfQ3Kg== X-Received: by 2002:ac8:7f53:0:b0:467:7725:8b69 with SMTP id d75a77b69052e-46fd0b67d83mr98245241cf.40.1738245364070; Thu, 30 Jan 2025 05:56:04 -0800 (PST) Received: from localhost.unh.edu ([2606:4100:3880:1257::10e7]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46fdf0c7783sm7077001cf.20.2025.01.30.05.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jan 2025 05:56:03 -0800 (PST) From: Patrick Robb To: paul.szczepanek@arm.com Cc: dev@dpdk.org, Luca.Vizzarro@arm.com, Patrick Robb Subject: [PATCH] dts: add sudo to linux link up Date: Thu, 30 Jan 2025 08:53:03 -0500 Message-ID: <20250130135303.704494-1-probb@iol.unh.edu> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250129220810.261925-1-probb@iol.unh.edu> References: <20250129220810.261925-1-probb@iol.unh.edu> 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 Fixes: 41d133d6c62f ("dts: automatically bring up link on interfaces") Cc: probb@iol.unh.edu Signed-off-by: Patrick Robb --- dts/framework/testbed_model/linux_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dts/framework/testbed_model/linux_session.py b/dts/framework/testbed_model/linux_session.py index e77fe9b692..8d568e2466 100644 --- a/dts/framework/testbed_model/linux_session.py +++ b/dts/framework/testbed_model/linux_session.py @@ -169,7 +169,7 @@ def update_ports(self, ports: list[Port]) -> None: def bring_up_link(self, ports: list[Port]) -> None: """Overrides :meth:`~.os_session.OSSession.bring_up_link`.""" for port in ports: - self.send_command(f"ip link set dev {port.logical_name} up") + self.send_command(f"ip link set dev {port.logical_name} up", privileged=True, verify=True) def _get_lshw_info(self) -> list[LshwOutput]: output = self.send_command("lshw -quiet -json -C network", verify=True) -- 2.48.1