diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-05-18 17:41:35 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-05-18 17:41:35 +0100 |
commit | 4d0c5c848fda305055b71abf63ccd18478586694 (patch) | |
tree | 5851f1adf33c18f94a16c71f8b01175e0d43e428 /src/op_mode | |
parent | 1e4dd009d711f24c504e0a6b61c5aefd37dcd6ce (diff) | |
download | vyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.tar.gz vyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.zip |
flake8: T2475: fix a number of issue reported by flake8
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/show_interfaces.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/op_mode/show_interfaces.py b/src/op_mode/show_interfaces.py index 7041c7e16..2f0f8a1c9 100755 --- a/src/op_mode/show_interfaces.py +++ b/src/op_mode/show_interfaces.py @@ -267,17 +267,15 @@ def run_show_counters(ifnames, iftypes, vif, vrrp): @register('clear') -def run_clear_intf(intf, iftypes, vif, vrrp): +def run_clear_intf(ifnames, iftypes, vif, vrrp): for interface in filtered_interfaces(ifnames, iftypes, vif, vrrp): print(f'Clearing {interface.ifname}') - interface = Interface(ifname, create=False, debug=False) interface.operational.clear_counters() @register('reset') -def run_reset_intf(intf, iftypes, vif, vrrp): +def run_reset_intf(ifnames, iftypes, vif, vrrp): for interface in filtered_interfaces(ifnames, iftypes, vif, vrrp): - interface = Interface(ifname, create=False, debug=False) interface.operational.reset_counters() |