Fix bad header length in network list

This commit is contained in:
Joshua Boniface 2021-10-09 18:50:32 -04:00
parent 6ce28c43af
commit d2c18d7b46
1 changed files with 1 additions and 1 deletions

View File

@ -610,7 +610,7 @@ def format_list(config, network_list):
networks_header_length=net_vni_length + net_description_length + 1, networks_header_length=net_vni_length + net_description_length + 1,
config_header_length=net_nettype_length + net_mtu_length + net_domain_length + net_v6_flag_length + net_dhcp6_flag_length + net_v4_flag_length + net_dhcp4_flag_length + 7, config_header_length=net_nettype_length + net_mtu_length + net_domain_length + net_v6_flag_length + net_dhcp6_flag_length + net_v4_flag_length + net_dhcp4_flag_length + 7,
networks_header='Networks ' + ''.join(['-' for _ in range(9, net_vni_length + net_description_length)]), networks_header='Networks ' + ''.join(['-' for _ in range(9, net_vni_length + net_description_length)]),
config_header='Config ' + ''.join(['-' for _ in range(7, net_nettype_length + net_domain_length + net_v6_flag_length + net_dhcp6_flag_length + net_v4_flag_length + net_dhcp4_flag_length + 5)])) config_header='Config ' + ''.join(['-' for _ in range(7, net_nettype_length + net_mtu_length + net_domain_length + net_v6_flag_length + net_dhcp6_flag_length + net_v4_flag_length + net_dhcp4_flag_length + 6)]))
) )
network_list_output.append('{bold}\ network_list_output.append('{bold}\
{net_vni: <{net_vni_length}} \ {net_vni: <{net_vni_length}} \