Skip to content

Commit

Permalink
[OnyxHost] fix shutdown/no shutdown methods (sonic-net#1778)
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
stepanblyschak authored Jun 17, 2020
1 parent d09d6d2 commit c1ed01f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/common/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c1ed01f

Please sign in to comment.