summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-04-05 16:27:37 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-04-06 20:22:35 +0100
commit9673a300f0b75386fa73b85cb7ccac4094ada6bf (patch)
tree651715258a64f3d883a222154c8e32a7200f86d1
parent4b6a6304184a91357c4e8260a134bfa9705f7e23 (diff)
downloadvyos-1x-9673a300f0b75386fa73b85cb7ccac4094ada6bf.tar.gz
vyos-1x-9673a300f0b75386fa73b85cb7ccac4094ada6bf.zip
util: T2226: rewrite EthernetIf.feature to use cmd
-rw-r--r--python/vyos/ifconfig/ethernet.py4
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, **{