Merge ~andreserl/maas:lp1763169_allow_proxy_dns into maas:master

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: e061efd9c73759411cab3dd9db29b3a021ca40c0
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~andreserl/maas:lp1763169_allow_proxy_dns
Merge into: maas:master
Diff against target: 66 lines (+48/-0)
1 file modified
src/maasserver/static/partials/subnet-details.html (+48/-0)
Reviewer Review Type Date Requested Status
Mike Pontillo (community) Approve
MAAS Lander Approve
Review via email: mp+352894@code.launchpad.net

Commit message

LP: #1763169 - Add UI options for allow_proxy,allow_dns

To post a comment you must log in.
Revision history for this message
MAAS Lander (maas-lander) wrote :

UNIT TESTS
-b lp1763169_allow_proxy_dns lp:~andreserl/maas/+git/maas into -b master lp:~maas-committers/maas

STATUS: SUCCESS
COMMIT: 8b392a6b3a62dab02d12e567513166193823044f

review: Approve
Revision history for this message
Mike Pontillo (mpontillo) wrote :

Code looks good (though I didn't test it), but I do have a comment below on the wording of the UI option.

review: Approve
6490bce... by Andres Rodriguez

Address review suggestions

e061efd... by Andres Rodriguez

Minor fixes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/maasserver/static/partials/subnet-details.html b/src/maasserver/static/partials/subnet-details.html
2index 673f144..da31b95 100755
3--- a/src/maasserver/static/partials/subnet-details.html
4+++ b/src/maasserver/static/partials/subnet-details.html
5@@ -165,6 +165,46 @@
6 </div>
7 <div class="p-form__group">
8 <div class="p-form__label">
9+ <p>
10+ <strong>Proxy access</strong>
11+ <span data-ng-if="subnet.allow_proxy == false" class="p-tooltip p-tooltip--btm-right">
12+ <i class="p-icon--information">Help:</i>
13+ <span class="p-tooltip__message" role="tooltip">MAAS will not allow clients from this&#xa;subnet to access the MAAS proxy.</span>
14+ </span>
15+
16+ <span data-ng-if="subnet.allow_proxy == true" class="p-tooltip p-tooltip--btm-right">
17+ <i class="p-icon--information">Help:</i>
18+ <span class="p-tooltip__message" role="tooltip">MAAS will allow clients from this&#xa;subnet to access the MAAS proxy.</span>
19+ </span>
20+ </p>
21+ </div>
22+ <div class="p-form__control">
23+ <span data-ng-if="subnet.allow_proxy == false">Disallowed</span>
24+ <span data-ng-if="subnet.allow_proxy == true">Allowed</span>
25+ </div>
26+ </div>
27+ <div class="p-form__group">
28+ <div class="p-form__label">
29+ <p>
30+ <strong>Allow DNS resolution</strong>
31+ <span data-ng-if="subnet.allow_dns == false" class="p-tooltip p-tooltip--btm-right">
32+ <i class="p-icon--information">Help:</i>
33+ <span class="p-tooltip__message" role="tooltip">MAAS will not allow clients from this&#xa;subnet to use MAAS for DNS resolution.</span>
34+ </span>
35+
36+ <span data-ng-if="subnet.allow_dns == true" class="p-tooltip p-tooltip--btm-right">
37+ <i class="p-icon--information">Help:</i>
38+ <span class="p-tooltip__message" role="tooltip">MAAS will allow clients from this&#xa;subnet to use MAAS for DNS resolution.</span>
39+ </span>
40+ </p>
41+ </div>
42+ <div class="p-form__control">
43+ <span data-ng-if="subnet.allow_dns == false">Disallowed</span>
44+ <span data-ng-if="subnet.allow_dns == true">Allowed</span>
45+ </div>
46+ </div>
47+ <div class="p-form__group">
48+ <div class="p-form__label">
49 <p><strong>Fabric</strong></p>
50 </div>
51 <div class="p-form__control">
52@@ -230,6 +270,14 @@
53 </p>
54 <maas-obj-field data-ng-if="subnet.version === 4" type="onoffswitch" key="active_discovery" label="Active mapping"
55 label-width="2" input-width="3" label-info="When enabled, MAAS will scan this subnet {$ active_discovery_interval | lowercase $}&#xa;to discover hosts that have not been discovered passively."></maas-obj-field>
56+ <maas-obj-field type="onoffswitch" key="allow_proxy" label="Proxy access"
57+ label-width="3" input-width="3"
58+ label-info="When enabled, MAAS will allow clients from this subnet to access&#xa;the MAAS proxy.">
59+ </maas-obj-field>
60+ <maas-obj-field type="onoffswitch" key="allow_dns" label="Allow DNS resolution"
61+ label-width="3" input-width="3"
62+ label-info="When enabled, MAAS will allow clients from this subnet to use&#xa;MAAS for DNS resolution.">
63+ </maas-obj-field>
64 <maas-obj-field type="options" key="fabric" label="Fabric" placeholder="Choose fabric"
65 options="fabric.id as fabric.name for fabric in fabrics | orderBy:'name'"
66 label-width="2" input-width="5"></maas-obj-field>

Subscribers

People subscribed via source and target branches