Skip to content

Commit

Permalink
Fix PFCWD 'start' command
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
  • Loading branch information
Shlomi Bitton committed Jan 3, 2021
1 parent b10622e commit 8a034a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pfcwd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a034a0

Please sign in to comment.