Skip to content

Commit f4316fa

Browse files
committed
Add stateless attribute to security list
1 parent 1a5c825 commit f4316fa

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

core/security_list_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ func SecurityListResource() *schema.Resource {
105105
},
106106
"tcp_options": transportSchema,
107107
"udp_options": transportSchema,
108+
"stateless": {
109+
Type: schema.TypeBool,
110+
Optional: true,
111+
Default: false,
112+
},
108113
},
109114
},
110115
},

core/security_list_resource_crud.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ func (s *SecurityListResourceCrud) buildIngressRules() (sdkRules []baremetal.Ing
144144
Source: confRule["source"].(string),
145145
TCPOptions: s.buildTCPOptions(confRule),
146146
UDPOptions: s.buildUDPOptions(confRule),
147+
IsStateless: confRule["stateless"].(bool),
147148
}
148149

149150
sdkRules = append(sdkRules, sdkRule)

0 commit comments

Comments
 (0)