Amend the manual network configuration "subnet" field label to clarify it's the network address that's requested#2259
Conversation
… the desired data
|
Hi - thanks for the PR. A few things:
Now the content itself - we have a few fields today
for a 192.168.100.20 address on the 192.168.100.0/24 subnet with gateway 192.168.100.1, we'd expect these inputs
Calling the first field "Network address CIDR" is an improvement in the sense that we list the CIDR part. But when I read "Network address CIDR" I think I'm being asked for 192.168.100.20/24, which is wrong for at least 2 reasons. What do we think about the label "CIDR Block" ? cc @ogayot @Chris-Peterson444 |
I agree that the current implementation is misleading. I think my preference would be to drop the subnet field entirely and replace it with a subnet mask noted as Something like:
I can't think of a good reason for requiring the network address to be specified by the user. We can calculate it if needed (and we already do - sort of - since we're validating that the local address belongs to the network. But this might be too involved for the scope of the original PR. |
I really like this design, much clearer |
An interesting suggestion! I like this for people who know was is asked for with the CIDR notation, but if you don't know what's expected after the slash it will be complicated.
Yes, a minor UX redesign like this is well out of scope for fixing a label. |
Yeah this is an improvement to the existing field I think. My default interpretation is to pass a subnet mask instead of the CIDR format at first glance.
Yeah this an interesting approach! I think we'd have to add some text to be explicit about what we want here, but it feels like a good goal. I agree it's out of scope for the current PR but we should document this for future improvements.
For manual/non-dhcp setup, wouldn't we want to allow the user to specify a static IP? |
Right, but this is more or less the same situation today isn't it. If you're not familiar with the
The static host IP, yes. But if you have a static host IP and a subnet length, the network address is redundant. import ipaddress
ipaddress.IPv4Interface("10.0.2.15/24").network
> IPv4Network('10.0.2.0/24')AFAICT, it only makes sense to specify the network address if we don't want a host address. But this isn't supported. |
Ahhh right this makes sense. I was getting this backwards originally, thanks for the explanation! I can see how the single address field + subnet bit length field would be pretty clean now. |
|
Should I abandon this PR, as it sounds like this may be fixed with a more comprehensive change to the UX in this screen. |
I'm happy to see the label changed in the meantime. I think "CIDR block", as Dan suggested, might be a better alternative than "Network Address CIDR" though. Thanks |




The "Subnet" prompt displayed in the manual/static network configuration screen has a prompt to provide the network address + cidr (i.e.
192.168.0.0/24) in a specific notation.However, the field label just asks for
Subnet:, which is misleading as255.255.255.0is a valid subnet but gets rejected.Moreover, the error message that is displayed when a user enters an invalid entry,
should be in CIDR form (xx.xx.xx.xx/yy), is equally vague as it doesn't indicate the requested subnet is actually the first IP of the subnet of the desired IP address of the machine (i.e. the network address).