diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-05 16:27:37 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-06 20:22:35 +0100 |
commit | 9673a300f0b75386fa73b85cb7ccac4094ada6bf (patch) | |
tree | 651715258a64f3d883a222154c8e32a7200f86d1 /python/vyos | |
parent | 4b6a6304184a91357c4e8260a134bfa9705f7e23 (diff) | |
download | vyos-1x-9673a300f0b75386fa73b85cb7ccac4094ada6bf.tar.gz vyos-1x-9673a300f0b75386fa73b85cb7ccac4094ada6bf.zip |
util: T2226: rewrite EthernetIf.feature to use cmd
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/ifconfig/ethernet.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/ifconfig/ethernet.py b/python/vyos/ifconfig/ethernet.py index c18d2e72f..291b326bf 100644 --- a/python/vyos/ifconfig/ethernet.py +++ b/python/vyos/ifconfig/ethernet.py @@ -18,7 +18,7 @@ import re from vyos.ifconfig.interface import Interface from vyos.ifconfig.vlan import VLAN -from vyos.util import popen +from vyos.util import run from vyos.validate import * @@ -45,7 +45,7 @@ class EthernetIf(Interface): @staticmethod def feature(ifname, option, value): - out, code = popen(f'/sbin/ethtool -K {ifname} {option} {value}','ifconfig') + run(f'/sbin/ethtool -K {ifname} {option} {value}','ifconfig') return False _command_set = {**Interface._command_set, **{ |