Skip to content

Fix CLI Output for prefix ip addresses#2637

Merged
aramprice merged 1 commit intomainfrom
fix-cli-prefix-output
Nov 13, 2025
Merged

Fix CLI Output for prefix ip addresses#2637
aramprice merged 1 commit intomainfrom
fix-cli-prefix-output

Conversation

@fmoehler
Copy link
Copy Markdown
Contributor

@fmoehler fmoehler commented Nov 4, 2025

What is this change about?

Currently the CLI output looks a little weird when a prefix address is allocated. This PR does two things:

  1. Avoids showing duplicate base addresses of the prefix
  2. Sort the ips by the size of the integer representation

Please provide contextual information.

This commit accidentally removed the prefix information when reading the ip address from the network_spec_json in the vms database table: 5b453b6

This way the cli output looks like this at the moment if a prefix address is assigned:

image

You can see that the base address of the prefix is being shown twice, once with prefix (correct) and once without prefix (incorrect).

What tests have you run against this PR?

Extended the existing unit tests to take care of this scenario

How should this change be described in bosh release notes?

Fix CLI Output for prefix ip addresses

Does this PR introduce a breaking change?

No

@fmoehler fmoehler force-pushed the fix-cli-prefix-output branch from 498af8c to 1408d0a Compare November 4, 2025 11:50
@fmoehler fmoehler changed the title The prefix should also be returned from the network_spec Fix CLI Output for prefix ip addresses Nov 4, 2025
@rkoster rkoster requested review from a team, KauzClay and selzoc and removed request for a team November 6, 2025 16:36
@rkoster rkoster moved this from Inbox to Pending Review | Discussion in Foundational Infrastructure Working Group Nov 6, 2025
@github-project-automation github-project-automation bot moved this from Pending Review | Discussion to Pending Merge | Prioritized in Foundational Infrastructure Working Group Nov 13, 2025
@aramprice aramprice merged commit 9ec3b74 into main Nov 13, 2025
19 checks passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Nov 13, 2025
@aramprice aramprice deleted the fix-cli-prefix-output branch November 13, 2025 16:00
@aramprice
Copy link
Copy Markdown
Member

Hi Felix,

I think this may have broken the integrations specs, based on CI output. More details in 9ec3b74#r170570246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants