more cleanup of output
@@ -128,12 +128,12 @@ class PoseidonShell(cmd.Cmd):
'''
# TODO check if it should call show_state or show_devices
endpoints = Commands().show_state(arg)
- table = Texttable()
- table.add_row(['Name', 'State', 'Ignored', 'MAC Address', 'Segment', 'Port', 'VLAN', 'IPv4', 'IPv6',
- 'Next State'])
+ table = Texttable(max_width=120)
+ table.add_row(['Name', 'State', 'MAC Address', 'Segment',
+ 'Port', 'VLAN', 'IPv4', 'IPv6', 'Next State'])
for endpoint in endpoints:
- table.add_row([endpoint.machine.name, endpoint.state, str(endpoint.ignore),
- endpoint.endpoint_data['mac'], endpoint.endpoint_data['segment'], endpoint.endpoint_data['port'], endpoint.endpoint_data['tenant'], endpoint.endpoint_data['ipv4'], endpoint.endpoint_data['ipv6'], endpoint.p_next_state])
+ table.add_row([endpoint.machine.name, endpoint.state, endpoint.endpoint_data['mac'], endpoint.endpoint_data['segment'], endpoint.endpoint_data['port'],
+ endpoint.endpoint_data['tenant'], endpoint.endpoint_data['ipv4'], endpoint.endpoint_data['ipv6'], endpoint.p_next_state])
print(table.draw())
def do_quit(self, arg):
