mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 00:57:47 +00:00
[tests] replace ifconfig command with ip command in node.py (#7471)
This commit replaces `ifconfig` command with `ip` command in node.py for testing. `ifconfig` is not available on BR when bind9 is disabled.
This commit is contained in:
@@ -3142,13 +3142,13 @@ class LinuxHost():
|
||||
"""Enable the ethernet interface.
|
||||
"""
|
||||
|
||||
self.bash(f'ifconfig {self.ETH_DEV} up')
|
||||
self.bash(f'ip link set {self.ETH_DEV} up')
|
||||
|
||||
def disable_ether(self):
|
||||
"""Disable the ethernet interface.
|
||||
"""
|
||||
|
||||
self.bash(f'ifconfig {self.ETH_DEV} down')
|
||||
self.bash(f'ip link set {self.ETH_DEV} down')
|
||||
|
||||
def get_ether_addrs(self):
|
||||
output = self.bash(f'ip -6 addr list dev {self.ETH_DEV}')
|
||||
|
||||
Reference in New Issue
Block a user