Merge ~newell-jensen/maas:2.2-lp1700802 into maas:2.2

Proposed by Newell Jensen
Status: Merged
Approved by: Newell Jensen
Approved revision: a9c312a79ae9fc521dbb40618183ddaa9bfe34f7
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~newell-jensen/maas:2.2-lp1700802
Merge into: maas:2.2
Diff against target: 48 lines (+19/-8)
1 file modified
src/maasserver/node_constraint_filter_forms.py (+19/-8)
Reviewer Review Type Date Requested Status
Newell Jensen (community) Approve
Review via email: mp+327473@code.launchpad.net

Commit message

Backport from master -- LP: #1700802 -- Add missing networking constraint names.

To post a comment you must log in.
Revision history for this message
Newell Jensen (newell-jensen) wrote :

Self approved backport.

review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/src/maasserver/node_constraint_filter_forms.py b/src/maasserver/node_constraint_filter_forms.py
index b509d5a..8107238 100644
--- a/src/maasserver/node_constraint_filter_forms.py
+++ b/src/maasserver/node_constraint_filter_forms.py
@@ -1,4 +1,4 @@
1# Copyright 2013-2016 Canonical Ltd. This software is licensed under the1# Copyright 2013-2017 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4__all__ = [4__all__ = [
@@ -88,19 +88,30 @@ def storage_validator(value):
88 raise ValidationError('Malformed storage constraint, "%s".' % value)88 raise ValidationError('Malformed storage constraint, "%s".' % value)
8989
90NETWORKING_CONSTRAINT_NAMES = {90NETWORKING_CONSTRAINT_NAMES = {
91 'space',91 'id',
92 'not_space',92 'not_id',
93 'fabric',
94 'not_fabric',
93 'fabric_class',95 'fabric_class',
94 'not_fabric_class',96 'not_fabric_class',
97 'ip',
98 'not_ip',
99 'mode',
100 'name',
101 'not_name',
102 'hostname',
103 'not_hostname',
104 'subnet',
105 'not_subnet',
106 'space',
107 'not_space',
95 'subnet_cidr',108 'subnet_cidr',
96 'not_subnet_cidr',109 'not_subnet_cidr',
110 'type',
111 'vlan',
112 'not_vlan',
97 'vid',113 'vid',
98 'not_vid',114 'not_vid',
99 'fabric',
100 'not_fabric',
101 'subnet',
102 'not_subnet',
103 'mode',
104 'tag',115 'tag',
105 'not_tag',116 'not_tag',
106}117}

Subscribers

People subscribed via source and target branches