Skip to content

Conversation

squizzi
Copy link
Member

@squizzi squizzi commented Oct 1, 2025

This PR adds support for the new has_report, network.resources and show-terminated support added to the network ls command within the CLI. This change should not be merged until the linked vendor portal PR.

The network resources are added when -owide is specified and a new line is added between rows to aid in readability:

./bin/replicated network ls -owide
ID          NAME                           STATUS          CREATED                           EXPIRES                           POLICY        HAS REPORT    REPORTING     RESOURCES
3cd1abe4    pensive_franklin               queued          2025-10-01 13:07 PDT              -                                 open          no            off           ubuntu: pensive_franklin (42e3fd12)

034a313a    wizardly_bartik                running         2025-10-01 11:59 PDT              2025-10-01 13:12 PDT              open          yes           on            ubuntu: wizardly_bartik (617a461b)
                                                                                                                                                                         almalinux: vibrant_ride (8776849d)

For non-wide I removed the REPORTING bool in place for HAS REPORT since they seemed redundant, I feel HAS REPORT on it's own gives enough info for the non-wide setting, but REPORTING on/off is still visible in wide and -ojson

./bin/replicated network ls
ID          NAME                           STATUS          CREATED                           EXPIRES                           POLICY        HAS REPORT
d2fa5db8    keen_swanson                   running         2025-10-01 12:25 PDT              2025-10-01 13:27 PDT              open          no
034a313a    wizardly_bartik                running         2025-10-01 11:59 PDT              2025-10-01 13:12 PDT              open          yes

We also now support --show-terminated which acts just like clusters/vms:

./bin/replicated network ls --show-terminated
ID          NAME                           STATUS          CREATED                           EXPIRES                           POLICY        HAS REPORT
d2fa5db8    keen_swanson                   running         2025-10-01 12:25 PDT              2025-10-01 13:27 PDT              open          no
034a313a    wizardly_bartik                running         2025-10-01 11:59 PDT              2025-10-01 13:12 PDT              open          yes
7ae1b677    vibrant_shirley                terminated      2025-10-01 10:12 PDT              2025-10-01 10:13 PDT              open          no
ab61c69d    hopeful_wing                   terminated      2025-10-01 10:12 PDT              2025-10-01 10:12 PDT              open          yes
93f06ff8    elegant_ardinghelli            terminated      2025-10-01 10:11 PDT              2025-10-01 10:11 PDT              open          yes
69d4c8e1    trusting_wilbur                terminated      2025-10-01 10:08 PDT              2025-10-01 10:09 PDT              open          yes
aa28ad7e    sad_lumiere                    terminated      2025-10-01 10:06 PDT              2025-10-01 10:07 PDT              open          yes
05984917    charming_black                 terminated      2025-09-30 18:25 PDT              2025-09-30 19:29 PDT              open          yes
d9102050    mystifying_taussig             terminated      2025-09-30 18:16 PDT              2025-09-30 19:17 PDT              open          no
0ce9278f    optimistic_dhawan              terminated      2025-09-30 18:15 PDT              2025-09-30 19:19 PDT              open          no

And we have a new --show-reports flag which only shows HAS REPORT=true results:

./bin/replicated network ls --show-reports
ID          NAME                           STATUS          CREATED                           EXPIRES                           POLICY        HAS REPORT
034a313a    wizardly_bartik                running         2025-10-01 11:59 PDT              2025-10-01 13:12 PDT              open          yes

./bin/replicated network ls --show-reports --show-terminated
ID          NAME                           STATUS          CREATED                           EXPIRES                           POLICY        HAS REPORT
034a313a    wizardly_bartik                running         2025-10-01 11:59 PDT              2025-10-01 13:12 PDT              open          yes
ab61c69d    hopeful_wing                   terminated      2025-10-01 10:12 PDT              2025-10-01 10:12 PDT              open          yes
93f06ff8    elegant_ardinghelli            terminated      2025-10-01 10:11 PDT              2025-10-01 10:11 PDT              open          yes
69d4c8e1    trusting_wilbur                terminated      2025-10-01 10:08 PDT              2025-10-01 10:09 PDT              open          yes
aa28ad7e    sad_lumiere                    terminated      2025-10-01 10:06 PDT              2025-10-01 10:07 PDT              open          yes
05984917    charming_black                 terminated      2025-09-30 18:25 PDT              2025-09-30 19:29 PDT              open          yes

@squizzi squizzi marked this pull request as draft October 1, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant