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
=== modified file 'src/maasserver/models/nodegroupinterface.py'
--- src/maasserver/models/nodegroupinterface.py 2014-06-11 04:38:41 +0000
+++ src/maasserver/models/nodegroupinterface.py 2014-06-18 07:18:43 +0000
@@ -54,7 +54,8 @@
54 # Static IP of the interface.54 # Static IP of the interface.
55 ip = GenericIPAddressField(55 ip = GenericIPAddressField(
56 null=False, editable=True,56 null=False, editable=True,
57 help_text="Static IP Address of the interface")57 help_text="Static IP Address of the interface",
58 verbose_name="IP")
5859
59 # The `NodeGroup` this interface belongs to.60 # The `NodeGroup` this interface belongs to.
60 nodegroup = ForeignKey(61 nodegroup = ForeignKey(
@@ -69,25 +70,36 @@
69 blank=True, editable=True, max_length=255, default='',70 blank=True, editable=True, max_length=255, default='',
70 help_text="Name of this interface (e.g. 'em1').")71 help_text="Name of this interface (e.g. 'em1').")
71 subnet_mask = GenericIPAddressField(72 subnet_mask = GenericIPAddressField(
72 editable=True, unique=False, blank=True, null=True, default=None)73 editable=True, unique=False, blank=True, null=True, default=None,
74 help_text="e.g. 255.255.255.0")
73 broadcast_ip = GenericIPAddressField(75 broadcast_ip = GenericIPAddressField(
74 editable=True, unique=False, blank=True, null=True, default=None)76 editable=True, unique=False, blank=True, null=True, default=None,
77 verbose_name="Broadcast IP",
78 help_text="e.g. 192.168.1.255")
75 router_ip = GenericIPAddressField(79 router_ip = GenericIPAddressField(
76 editable=True, unique=False, blank=True, null=True, default=None)80 editable=True, unique=False, blank=True, null=True, default=None,
81 verbose_name="Router IP",
82 help_text="IP of this network's router given to DHCP clients")
77 ip_range_low = GenericIPAddressField(83 ip_range_low = GenericIPAddressField(
78 editable=True, unique=False, blank=True, null=True, default=None,84 editable=True, unique=False, blank=True, null=True, default=None,
79 help_text="Lowest IP number of the range for dynamic IPs.")85 verbose_name="DHCP dynamic IP range low value",
86 help_text="Lowest IP number of the range for dynamic IPs, used for "
87 "enlistment, commissioning and unknown devices.")
80 ip_range_high = GenericIPAddressField(88 ip_range_high = GenericIPAddressField(
81 editable=True, unique=False, blank=True, null=True, default=None,89 editable=True, unique=False, blank=True, null=True, default=None,
82 help_text="Highest IP number of the range for dynamic IPs.")90 verbose_name="DHCP dynamic IP range high value",
91 help_text="Highest IP number of the range for dynamic IPs, used for "
92 "enlistment, commissioning and unknown devices.")
83 static_ip_range_low = GenericIPAddressField(93 static_ip_range_low = GenericIPAddressField(
84 editable=True, unique=False, blank=True, null=True, default=None,94 editable=True, unique=False, blank=True, null=True, default=None,
85 help_text="Lowest IP number of the range for static IPs, must be same"95 verbose_name="Static IP range low value",
86 " network as dynamic range.")96 help_text="Lowest IP number of the range for IPs given to allocated "
97 "nodes, must be in same network as dynamic range.")
87 static_ip_range_high = GenericIPAddressField(98 static_ip_range_high = GenericIPAddressField(
88 editable=True, unique=False, blank=True, null=True, default=None,99 editable=True, unique=False, blank=True, null=True, default=None,
89 help_text="Highest IP number of the range for static IPs, must be same"100 verbose_name="Static IP range high value",
90 " network as dynamic range.")101 help_text="Highest IP number of the range for IPs given to allocated "
102 "nodes, must be in same network as dynamic range.")
91103
92 # Foreign DHCP server address, if any, that was detected on this104 # Foreign DHCP server address, if any, that was detected on this
93 # interface.105 # interface.