← All changes
Harvester UI · Developed by us

Subnets without a VPC get a clear "None" group on the VPC page

The issue asked us to show underlay subnets separately on the Virtual Private Cloud page. The page already shows this in its VLAN column, so we don't add a new group. While working on it, we found that subnets without a VPC sat in a group with an empty title and buttons that did nothing useful. We fixed that.

In review PR 1210 ↗ Issue 8916 ↗ Issue 9793 (closed, same request) ↗
What changes for the user
Needs a decision

The flow

1

Underlay and overlay subnets, as the page shows them today

The VLAN column names the VLAN a subnet is bound to. A dash means it isn't bound to one.

Virtual Private Cloud page: the VLAN column shows zz8916-vlan for the underlay subnets and a dash for the overlay subnets
Subnets with a VLAN (here "zz8916-vlan") are underlay subnets. Subnets with a dash are overlay subnets. This is unchanged. A first draft added a separate "Underlay Subnets" group, but we dropped it: grouping, sorting and columns should show the data as the system defines it, and "underlay group" isn't a field there.
2

The group of subnets without a VPC

Its title was "Virtual Private Cloud:" with nothing after it. Now it says "None".

Group title: before 'Virtual Private Cloud:' with an empty name, after 'Virtual Private Cloud: None'
A subnet normally always gets a VPC (the default one is "ovn-cluster"). It has none only when the network system couldn't process it, for example because of an invalid provider, which is what the issue's screenshot shows.
3

No more buttons that do nothing

The buttons on that group are gone. The real VPC groups below keep theirs.

Group buttons: before Create Subnet, Topology and a menu saying 'No actions available'; after no buttons on the None group, while ovn-cluster and zz8916-vpc keep theirs
Before, the ⋮ menu opened with "No actions available", Topology did nothing, and Create Subnet opened the form with no VPC chosen.

Video (optional)

0:00 Before: the empty group title, its empty ⋮ menu and Topology · 0:24 After: "Virtual Private Cloud: None", the other groups unchanged

Notes