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