def print_ifaces_localhost_table(self):
indent = ' ' * 1
header = indent + 'Localhost interfaces information:\n'
self.localhost_table = [['Interface', 'Status', 'IP Address', 'Mask']]
for data in self.ifaces_localhost:
self.localhost_table.append([
data,
self.dict_status[data],
self.dict_ipaddr[data],
self.dict_mask[data]
])
table = AsciiTable(self.localhost_table)
print (Fore.YELLOW + Style.DIM + header + table.table)
评论列表
文章目录