From b34f2a3fd378e703ce37e4c939940b49dcc56696 Mon Sep 17 00:00:00 2001 From: Yi Date: Thu, 10 Mar 2022 22:54:50 +0800 Subject: [PATCH] [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. --- tests/scripts/thread-cert/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/thread-cert/node.py b/tests/scripts/thread-cert/node.py index d0663152f..f7a26a23c 100755 --- a/tests/scripts/thread-cert/node.py +++ b/tests/scripts/thread-cert/node.py @@ -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}')