Merge lp:~julian-edwards/maas/ui-fixes into lp:~maas-committers/maas/trunk

Proposed by Julian Edwards
Status: Merged
Approved by: Julian Edwards
Approved revision: no longer in the source branch.
Merged at revision: 2431
Proposed branch: lp:~julian-edwards/maas/ui-fixes
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 59 lines (+22/-10)
1 file modified
src/maasserver/models/nodegroupinterface.py (+22/-10)
To merge this branch: bzr merge lp:~julian-edwards/maas/ui-fixes
Reviewer Review Type Date Requested Status
Jeroen T. Vermeulen (community) Approve
Review via email: mp+223506@code.launchpad.net

Commit message

In the cluster interface edit page, 1. Have consistent capitalisation of "IP", 2. introduce help text for all the fields.

To post a comment you must log in.
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Thanks for fixing this. I believe there's a MAC field that gets displayed as Mac as well... I might just do that next when I have time to fill.

The router_ip help string says “IP of this network's router given to DHCP clients” — should that be _to be_ given to DHCP clients?

Does it need saying that the static and dynamic ranges must be disjoint?

review: Approve
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Thanks for reviewing.

On 18/06/14 17:48, Jeroen T. Vermeulen wrote:
> Review: Approve
>
> Thanks for fixing this. I believe there's a MAC field that gets displayed as Mac as well... I might just do that next when I have time to fill.
>
> The router_ip help string says “IP of this network's router given to DHCP clients” — should that be _to be_ given to DHCP clients?

I think that's more wordy and essentially makes no difference to the
reader's understanding of what will happen.

>
> Does it need saying that the static and dynamic ranges must be disjoint?
>

Well if they are not disjoint the user will quickly find out about that :)

But you raise an interesting point that I was pondering over anyway -
where do we put general help text for the whole form? We don't have a
good way of doing this AFAIK.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/maasserver/models/nodegroupinterface.py'
2--- src/maasserver/models/nodegroupinterface.py 2014-06-11 04:38:41 +0000
3+++ src/maasserver/models/nodegroupinterface.py 2014-06-18 07:18:43 +0000
4@@ -54,7 +54,8 @@
5 # Static IP of the interface.
6 ip = GenericIPAddressField(
7 null=False, editable=True,
8- help_text="Static IP Address of the interface")
9+ help_text="Static IP Address of the interface",
10+ verbose_name="IP")
11
12 # The `NodeGroup` this interface belongs to.
13 nodegroup = ForeignKey(
14@@ -69,25 +70,36 @@
15 blank=True, editable=True, max_length=255, default='',
16 help_text="Name of this interface (e.g. 'em1').")
17 subnet_mask = GenericIPAddressField(
18- editable=True, unique=False, blank=True, null=True, default=None)
19+ editable=True, unique=False, blank=True, null=True, default=None,
20+ help_text="e.g. 255.255.255.0")
21 broadcast_ip = GenericIPAddressField(
22- editable=True, unique=False, blank=True, null=True, default=None)
23+ editable=True, unique=False, blank=True, null=True, default=None,
24+ verbose_name="Broadcast IP",
25+ help_text="e.g. 192.168.1.255")
26 router_ip = GenericIPAddressField(
27- editable=True, unique=False, blank=True, null=True, default=None)
28+ editable=True, unique=False, blank=True, null=True, default=None,
29+ verbose_name="Router IP",
30+ help_text="IP of this network's router given to DHCP clients")
31 ip_range_low = GenericIPAddressField(
32 editable=True, unique=False, blank=True, null=True, default=None,
33- help_text="Lowest IP number of the range for dynamic IPs.")
34+ verbose_name="DHCP dynamic IP range low value",
35+ help_text="Lowest IP number of the range for dynamic IPs, used for "
36+ "enlistment, commissioning and unknown devices.")
37 ip_range_high = GenericIPAddressField(
38 editable=True, unique=False, blank=True, null=True, default=None,
39- help_text="Highest IP number of the range for dynamic IPs.")
40+ verbose_name="DHCP dynamic IP range high value",
41+ help_text="Highest IP number of the range for dynamic IPs, used for "
42+ "enlistment, commissioning and unknown devices.")
43 static_ip_range_low = GenericIPAddressField(
44 editable=True, unique=False, blank=True, null=True, default=None,
45- help_text="Lowest IP number of the range for static IPs, must be same"
46- " network as dynamic range.")
47+ verbose_name="Static IP range low value",
48+ help_text="Lowest IP number of the range for IPs given to allocated "
49+ "nodes, must be in same network as dynamic range.")
50 static_ip_range_high = GenericIPAddressField(
51 editable=True, unique=False, blank=True, null=True, default=None,
52- help_text="Highest IP number of the range for static IPs, must be same"
53- " network as dynamic range.")
54+ verbose_name="Static IP range high value",
55+ help_text="Highest IP number of the range for IPs given to allocated "
56+ "nodes, must be in same network as dynamic range.")
57
58 # Foreign DHCP server address, if any, that was detected on this
59 # interface.