From 2b509b2c472804488f19a4bb3e9530c116a17e60 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 6 Oct 2025 10:11:53 +0200 Subject: [PATCH] sniffer: extend list of compatible nodes --- iotlabaggregator/sniffer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iotlabaggregator/sniffer.py b/iotlabaggregator/sniffer.py index 004954e..be9f53f 100644 --- a/iotlabaggregator/sniffer.py +++ b/iotlabaggregator/sniffer.py @@ -33,6 +33,9 @@ from iotlabaggregator import connections, common, zeptopcap, LOGGER +SNIFFER_NODES_COMPAT = ['a8', 'frdm-kw41z', 'm3', 'nrf52840dk', 'samr21'] + + class SnifferConnection(connections.Connection): """ Connection to sniffer and data handling """ port = 30000 @@ -152,7 +155,7 @@ def __init__(self, nodes_list, outfd, raw=False, *args, **kwargs): def select_nodes(opts): """ Select all gateways that support sniffer """ nodes = common.get_nodes_selection(**vars(opts)) - nodes_list = [n for n in nodes if n.startswith(('m3', 'a8'))] + nodes_list = [n for n in nodes if n.startswith(SNIFFER_NODES_COMPAT)] return nodes_list