Skip to content

Commit

Permalink
removed comment of old hardcoded network table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkman424 committed May 6, 2024
1 parent fdae28c commit 8da0e98
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions cmd/incus/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -1163,26 +1163,6 @@ func (c *cmdNetworkList) Run(cmd *cobra.Command, args []string) error {

data := [][]string{}
for _, network := range networks {
// if slices.Contains([]string{"loopback", "unknown"}, network.Type) {
// continue
// }

// strManaged := i18n.G("NO")
// if network.Managed {
// strManaged = i18n.G("YES")
// }

// strUsedBy := fmt.Sprintf("%d", len(network.UsedBy))
// details := []string{
// network.Name,
// network.Type,
// strManaged,
// network.Config["ipv4.address"],
// network.Config["ipv6.address"],
// network.Description,
// strUsedBy,
// strings.ToUpper(network.Status),
// }
line := []string{}
for _, column := range columns {
line = append(line, column.Data(network))
Expand All @@ -1194,16 +1174,6 @@ func (c *cmdNetworkList) Run(cmd *cobra.Command, args []string) error {

sort.Sort(cli.SortColumnsNaturally(data))

// header := []string{
// i18n.G("NAME"),
// i18n.G("TYPE"),
// i18n.G("MANAGED"),
// i18n.G("IPV4"),
// i18n.G("IPV6"),
// i18n.G("DESCRIPTION"),
// i18n.G("USED BY"),
// i18n.G("STATE"),
// }
header := []string{}
for _, column := range columns {
header = append(header, column.Name)
Expand Down

0 comments on commit 8da0e98

Please sign in to comment.