srl-labs / containerlab

container-based networking labs
https://containerlab.dev
BSD 3-Clause "New" or "Revised" License
1.47k stars 250 forks source link

sort the topology information table on container name #100

Closed hellt closed 3 years ago

hellt commented 3 years ago

The table that appears once the lab has been created is not sorted:

+---------------------------------+---------------------------------+-------+-------+---------+-----------------+----------------------+
|              Name               |              Image              | Kind  | Group |  State  |  IPv4 Address   |     IPv6 Address     |
+---------------------------------+---------------------------------+-------+-------+---------+-----------------+----------------------+
| containerlab-clos02-spine1      | srlinux                         | srl   |       | running | 172.20.20.14/24 | 2001:172:20:20::e/80 |
| containerlab-clos02-client3     | ghcr.io/hellt/network-multitool | linux |       | running | 172.20.20.15/24 | 2001:172:20:20::f/80 |
| containerlab-clos02-spine2      | srlinux                         | srl   |       | running | 172.20.20.13/24 | 2001:172:20:20::d/80 |
| containerlab-clos02-superspine1 | srlinux                         | srl   |       | running | 172.20.20.11/24 | 2001:172:20:20::b/80 |
| containerlab-clos02-client1     | ghcr.io/hellt/network-multitool | linux |       | running | 172.20.20.12/24 | 2001:172:20:20::c/80 |
| containerlab-clos02-leaf3       | srlinux                         | srl   |       | running | 172.20.20.10/24 | 2001:172:20:20::a/80 |
| containerlab-clos02-leaf2       | srlinux                         | srl   |       | running | 172.20.20.6/24  | 2001:172:20:20::6/80 |
| containerlab-clos02-client4     | ghcr.io/hellt/network-multitool | linux |       | running | 172.20.20.8/24  | 2001:172:20:20::8/80 |
| containerlab-clos02-client2     | ghcr.io/hellt/network-multitool | linux |       | running | 172.20.20.7/24  | 2001:172:20:20::7/80 |
| containerlab-clos02-superspine2 | srlinux                         | srl   |       | running | 172.20.20.5/24  | 2001:172:20:20::5/80 |
| containerlab-clos02-leaf4       | srlinux                         | srl   |       | running | 172.20.20.9/24  | 2001:172:20:20::9/80 |
| containerlab-clos02-spine3      | srlinux                         | srl   |       | running | 172.20.20.4/24  | 2001:172:20:20::4/80 |
| containerlab-clos02-leaf1       | srlinux                         | srl   |       | running | 172.20.20.3/24  | 2001:172:20:20::3/80 |
| containerlab-clos02-spine4      | srlinux                         | srl   |       | running | 172.20.20.2/24  | 2001:172:20:20::2/80 |
+---------------------------------+---------------------------------+-------+-------+---------+-----------------+----------------------+

The proposal is to sort it on the container name

hellt commented 3 years ago

closed via #102