diff --git a/tests/common/devices.py b/tests/common/devices.py index 2bd1e0a7962..4a59f292c42 100644 --- a/tests/common/devices.py +++ b/tests/common/devices.py @@ -770,14 +770,14 @@ def __init__(self, ansible_adhoc, hostname, user, passwd, gather_facts=False): def shutdown(self, interface_name): out = self.host.onyx_config( lines=['shutdown'], - parents='interface ethernet %s' % interface_name) + parents='interface %s' % interface_name) logging.info('Shut interface [%s]' % interface_name) return out def no_shutdown(self, interface_name): out = self.host.onyx_config( lines=['no shutdown'], - parents='interface ethernet %s' % interface_name) + parents='interface %s' % interface_name) logging.info('No shut interface [%s]' % interface_name) return out