Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the example for pfcwd start command #1984

Merged
merged 2 commits into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2052,7 +2052,7 @@ def start(action, restoration_time, ports, detection_time, verbose):
Start PFC watchdog on port(s). To config all ports, use all as input.

Example:
config pfcwd start --action drop ports all detection-time 400 --restoration-time 400
config pfcwd start --action drop all 400 --restoration-time 400
"""
cmd = "pfcwd start"

Expand Down
4 changes: 2 additions & 2 deletions doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6154,8 +6154,8 @@ This command starts PFC Watchdog

- Usage:
```
config pfcwd start --action drop ports all detection-time 400 --restoration-time 400
config pfcwd start --action forward ports Ethernet0 Ethernet8 detection-time 400
config pfcwd start --action drop all 400 --restoration-time 400
config pfcwd start --action forward Ethernet0 Ethernet8 400
```

**config pfcwd stop**
Expand Down
2 changes: 1 addition & 1 deletion pfcwd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def start(db, action, restoration_time, ports, detection_time):

Example:

sudo pfcwd start --action drop ports all detection-time 400 --restoration-time 400
sudo pfcwd start --action drop all 400 --restoration-time 400

"""
PfcwdCli(db).start(
Expand Down
2 changes: 1 addition & 1 deletion tests/pfcwd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_pfcwd_start_ports_valid(self, mock_os):

@patch('pfcwd.main.os')
def test_pfcwd_start_actions(self, mock_os):
# pfcwd start --action fwd --restoration-time 200 Ethernet0 200
# pfcwd start --action forward --restoration-time 200 Ethernet0 200
import pfcwd.main as pfcwd
runner = CliRunner()
db = Db()
Expand Down