From 8a034a0381b3720445e01fdd821d9697f2601fc3 Mon Sep 17 00:00:00 2001 From: Shlomi Bitton Date: Sun, 3 Jan 2021 13:46:07 +0200 Subject: [PATCH] Fix PFCWD 'start' command Signed-off-by: Shlomi Bitton --- pfcwd/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pfcwd/main.py b/pfcwd/main.py index c55038b9b2..fc1789efaa 100644 --- a/pfcwd/main.py +++ b/pfcwd/main.py @@ -167,6 +167,9 @@ def get_invalid_ports(self, ports=[]): port_set = set(ports) # "all" is a valid option, remove before performing set diff port_set.discard("all") + # "detection-time" and "ports" are part of the arg tuple, remove before performing set diff + port_set.discard("detection-time") + port_set.discard("ports") return port_set - set(self.all_ports) @multi_asic_util.run_on_multi_asic