diff --git a/category/get_net_info.py b/category/get_net_info.py index 6e59341172972002396388e594b5673557022d85..1061998584d42d6306d9107a5028f86d39e69cad 100644 --- a/category/get_net_info.py +++ b/category/get_net_info.py @@ -119,8 +119,8 @@ class NetInfo: res_list = [] for i, device in enumerate(self.__netdevice): - type = self.__netdevice[device] - if type == 'ethernet' and self.__link_status[device] == 'yes': + ntype = self.__netdevice[device] + if ntype == 'ethernet' and self.__link_status[device] == 'yes': cmd_result = Command.cmd_run("ethtool -k " + device) res_list.append(cmd_result) cmd_result = Command.cmd_run("ethtool -c " + device) @@ -223,4 +223,4 @@ class NetInfo: return list(dev_list) def get_netdevice_g(self): - return self.__netdev_ring \ No newline at end of file + return self.__netdev_ring