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 47DA94401C; Mon, 13 May 2024 18:12:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C362E4067A; Mon, 13 May 2024 18:12:13 +0200 (CEST) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by mails.dpdk.org (Postfix) with ESMTP id 063714067A for ; Mon, 13 May 2024 18:12:13 +0200 (CEST) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a59b49162aeso1145101866b.3 for ; Mon, 13 May 2024 09:12:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1715616732; x=1716221532; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=npKTp5TGxTQ+DqvCerQ1oK0eSqFZivMy/I3c8AK+ZWs=; b=DpcIhdph847OQzsJUNox9JXPaCVe0xqq+2nwVC4yYYxxmFgYShfcr0yQ7kAkRQ+iNc 87DIwWgW2JHW8OpG4HLyRIRnr5rQlhAS9d4eT1xremCBaDFlYiRzoQxh0mjPUc4k1Yoc wl4VaxZpwr8DXKFKkqPg5WTyV53imAy3P6UfjPCAnxaShI83KA2s2D8gRvjRR1M5DFsN lXPm7d9BokgdK0dI8rcUs1nNTfR8KN/BHHOPGf6GVL9DA7KbCwCVuM/pseQeLU25x49/ 0YjvCGP2klLHmJdK2w96HPwaJf65IIZWivB3q1F4RUVX5D1XhzFcfWyEZJyUUI1OgNW4 Pz/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715616732; x=1716221532; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=npKTp5TGxTQ+DqvCerQ1oK0eSqFZivMy/I3c8AK+ZWs=; b=b53sy2K9rsJF/jP6BcFywqkCJabVuy4sUNucwxsPX05lWAtNio2dCjDV83Re0zreDC OlDhlh1IRL3GMb4vgAbbhwcSXgHzu1tI7xAHjPJLW4chhKkeDpYP66EQj9NA46W3CRaX OqHtnDXFgjbRsU0pIoadBzK+J3kq0j8fN/7a/Yw44FFgyBbFerZrh0bgyVvAKoY9kp+e pT8HH0rsTkff6f/YhOESocj5zwsMfnsN2IbkOCIWjd2y9ydxV9oV98a2oyrWsItSaj9i weaAxJ04vI05FC6QhUhduL5whZ3rL4A7mWWjgjyfrJlzRGLaJNFgAug7LaMeBUT4Z8df FxQw== X-Gm-Message-State: AOJu0YxH8F8/VTXZ4vhn4etZmDgm4a0eEvSpl/zqAFBol2/v5ZHXkbCe 6jX6Zp89zcnd7X6ZANW+3V9+/Rn1ziGqPr6nCiAAOMV9fjRaW/ozd809JOYLwDL2OUsmv9nhlnE F7if3nU3/oRF4NNG46KVWHRZw0cNGlD2RcR2anQ== X-Google-Smtp-Source: AGHT+IGlj/B5OFlKUgMU8IbS5KkiNRb7nbvgx5pHrL7OfdzNoMFmjQ4Ih7lzEWolCvdfkPy3vxAeq6OODbmk5agkRmI= X-Received: by 2002:a17:907:7f94:b0:a59:ab57:741e with SMTP id a640c23a62f3a-a5a2d675779mr906031866b.76.1715616732600; Mon, 13 May 2024 09:12:12 -0700 (PDT) MIME-Version: 1.0 References: <20240509105704.1162449-1-luca.vizzarro@arm.com> <20240509105704.1162449-3-luca.vizzarro@arm.com> In-Reply-To: <20240509105704.1162449-3-luca.vizzarro@arm.com> From: =?UTF-8?Q?Juraj_Linke=C5=A1?= Date: Mon, 13 May 2024 18:12:01 +0200 Message-ID: Subject: Re: [PATCH 2/2] dts: clean up config types To: Luca Vizzarro Cc: dev@dpdk.org, Jeremy Spewock , Paul Szczepanek Content-Type: text/plain; charset="UTF-8" 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 > diff --git a/dts/framework/testbed_model/traffic_generator/__init__.py b/dts/framework/testbed_model/traffic_generator/__init__.py > @@ -39,8 +39,8 @@ def create_traffic_generator( > Returns: > A traffic generator capable of capturing received packets. > """ > - match traffic_generator_config.traffic_generator_type: > - case TrafficGeneratorType.SCAPY: > + match traffic_generator_config: > + case ScapyTrafficGeneratorConfig(): > return ScapyTrafficGenerator(tg_node, traffic_generator_config) > case _: > raise ConfigurationError( Just one minor ask, could you fix the error string to an f-string?