summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces_ethernet.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces_ethernet.py b/src/conf_mode/interfaces_ethernet.py
index d926c458c..a85ccf815 100755
--- a/src/conf_mode/interfaces_ethernet.py
+++ b/src/conf_mode/interfaces_ethernet.py
@@ -386,11 +386,12 @@ def verify(ethernet):
if 'deleted' in ethernet:
return None
- ethtool = Ethtool(ethernet['ifname'])
- verify_interface_exists(ethernet, ethernet['ifname'])
+ ifname = ethernet['ifname']
+ verify_interface_exists(ethernet, ifname, state_required=True)
verify_eapol(ethernet)
verify_mirror_redirect(ethernet)
# No need to check speed and duplex keys as both have default values
+ ethtool = Ethtool(ifname)
verify_speed_duplex(ethernet, ethtool)
verify_flow_control(ethernet, ethtool)
verify_ring_buffer(ethernet, ethtool)