Skip to content

Commit 75d19fe

Browse files
committed
Revert "cleanup security model"
This reverts commit 911fb9c.
1 parent b0a1359 commit 75d19fe

File tree

1 file changed

+72
-15
lines changed

1 file changed

+72
-15
lines changed

models/examples/security/infrastructure_security.yml

Lines changed: 72 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ generics:
66
namespace: Security
77
description: "Generic Security Address."
88
label: "Security Address"
9-
human_friendly_id: ["name__value"]
9+
default_filter: name__value
1010
order_by:
1111
- "name__value"
1212
display_labels:
@@ -24,7 +24,7 @@ nodes:
2424
namespace: Infra
2525
description: "IP Address"
2626
label: "IP Address"
27-
human_friendly_id: ["address__value"]
27+
default_filter: address__value
2828
order_by:
2929
- "address__value"
3030
display_labels:
@@ -37,7 +37,18 @@ nodes:
3737
unique: true
3838
relationships:
3939
- name: organization
40-
peer: OrganizationGeneric
40+
peer: CoreOrganization
41+
optional: true
42+
cardinality: one
43+
kind: Attribute
44+
45+
- name: status
46+
peer: BuiltinStatus
47+
optional: false
48+
cardinality: one
49+
kind: Attribute
50+
- name: role
51+
peer: BuiltinRole
4152
optional: true
4253
cardinality: one
4354
kind: Attribute
@@ -51,27 +62,31 @@ nodes:
5162
namespace: Infra
5263
description: "IPv4 or IPv6 network (with mask)"
5364
label: "Prefix"
54-
human_friendly_id: ["prefix__value"]
55-
order_by:
56-
- "prefix__value"
57-
display_labels:
58-
- prefix__value
65+
default_filter: name__value
5966
inherit_from:
6067
- "SecurityAddress"
68+
order_by:
69+
- name__value
70+
display_labels:
71+
- name__value
6172
attributes:
6273
- name: prefix
6374
kind: IPNetwork
64-
unique: true
65-
relationships:
66-
- name: organization
67-
peer: OrganizationGeneric
75+
- name: name
76+
kind: Text
77+
- name: description
78+
kind: Text
6879
optional: true
80+
relationships:
81+
- name: status
82+
peer: BuiltinStatus
83+
optional: false
6984
cardinality: one
7085
kind: Attribute
71-
- name: tags
72-
peer: BuiltinTag
86+
- name: role
87+
peer: BuiltinRole
7388
optional: true
74-
cardinality: many
89+
cardinality: one
7590
kind: Attribute
7691

7792
- name: IPRange
@@ -95,6 +110,17 @@ nodes:
95110
identifier: security_iprange__end_address
96111
cardinality: one
97112
kind: Attribute
113+
114+
- name: status
115+
peer: BuiltinStatus
116+
optional: false
117+
cardinality: one
118+
kind: Attribute
119+
- name: role
120+
peer: BuiltinRole
121+
optional: true
122+
cardinality: one
123+
kind: Attribute
98124
- name: tags
99125
peer: BuiltinTag
100126
optional: true
@@ -112,6 +138,16 @@ nodes:
112138
order_by:
113139
- name__value
114140
relationships:
141+
- name: status
142+
peer: BuiltinStatus
143+
optional: false
144+
cardinality: one
145+
kind: Attribute
146+
- name: role
147+
peer: BuiltinRole
148+
optional: true
149+
cardinality: one
150+
kind: Attribute
115151
- name: tags
116152
peer: BuiltinTag
117153
optional: true
@@ -162,6 +198,11 @@ nodes:
162198
optional: false
163199
cardinality: one
164200
kind: Attribute
201+
- name: role
202+
peer: BuiltinRole
203+
optional: true
204+
cardinality: one
205+
kind: Attribute
165206
- name: tags
166207
peer: BuiltinTag
167208
optional: true
@@ -183,6 +224,11 @@ nodes:
183224
kind: Text
184225
optional: true
185226
relationships:
227+
- name: role
228+
peer: BuiltinRole
229+
optional: true
230+
cardinality: one
231+
kind: Attribute
186232
- name: tags
187233
peer: BuiltinTag
188234
optional: true
@@ -234,6 +280,17 @@ nodes:
234280
identifier: security_rule__destination_applications
235281
peer: SecurityApplication
236282
cardinality: many
283+
284+
- name: status
285+
peer: BuiltinStatus
286+
optional: false
287+
cardinality: one
288+
kind: Attribute
289+
- name: role
290+
peer: BuiltinRole
291+
optional: true
292+
cardinality: one
293+
kind: Attribute
237294
- name: tags
238295
peer: BuiltinTag
239296
optional: true

0 commit comments

Comments
 (0)