diff --git a/category/get_net_info.py b/category/get_net_info.py index 95dc6aa206547e4548c14a9bdd74819f2f90744b..4d56f7872e6408a50961d99401bd3ddd64ca76d1 100644 --- a/category/get_net_info.py +++ b/category/get_net_info.py @@ -84,4 +84,12 @@ def __get_devices_info(self): for i,cmd_result in enumerate(res_list): split = '=' if i == len(res_list)-1 else '-' res += FileOperation.wrap_output_format(cmd_name, cmd_result, split) - return Command.cmd_write_file(res, self.__default_file_name) \ No newline at end of file + return Command.cmd_write_file(res, self.__default_file_name) + +def get_info(self): + ''' + Get network monitoring information external interface + ''' + if not self.__get_devices(): + return False + self.__get_devices_info() \ No newline at end of file