Skip to content

Commit

Permalink
CLI: Use new formatting scheme for OVN underlay selection (#647)
Browse files Browse the repository at this point in the history
Fixes #613

Fix the output of the OVN underlay selection to also use the new
formatting scheme using the yellow and bold highlight color:

![Screenshot from 2025-02-18
10-51-55](https://github.com/user-attachments/assets/8db9404d-d859-4ad1-8db2-d5d2b4229603)
  • Loading branch information
roosterfish authored Feb 19, 2025
2 parents 332c516 + f32250e commit 18bc006
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/microcloud/ask.go
Original file line number Diff line number Diff line change
Expand Up @@ -1192,10 +1192,13 @@ func (c *initConfig) askOVNNetwork(sh *service.Handler) error {
}

if len(ovnUnderlaySelectedIPs) > 0 {
// Add a space between the CLI and the response.
fmt.Println("")

for peer := range askSystems {
underlayIP, ok := ovnUnderlaySelectedIPs[peer]
if ok {
fmt.Printf(" Using %q for OVN underlay traffic on %q\n", underlayIP, peer)
fmt.Println(tui.SummarizeResult("Using %s on %s for OVN underlay traffic", underlayIP, peer))
}
}

Expand Down

0 comments on commit 18bc006

Please sign in to comment.