Skip to content

Commit 35bb333

Browse files
committed
add forceNew
1 parent 3fef017 commit 35bb333

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cloudstack/resource_cloudstack_network_offering.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,77 +57,92 @@ func resourceCloudStackNetworkOffering() *schema.Resource {
5757
},
5858
Optional: true,
5959
Description: "the ID of the containing domain(s), null for public offerings",
60+
ForceNew: true,
6061
},
6162
"network_rate": {
6263
Type: schema.TypeInt,
6364
Optional: true,
6465
Description: "data transfer rate in megabits per second allowed",
66+
ForceNew: true,
6567
},
6668
"network_mode": {
6769
Type: schema.TypeString,
6870
Optional: true,
6971
Description: "Indicates the mode with which the network will operate. Valid option: NATTED or ROUTED",
72+
ForceNew: true,
7073
},
7174
"max_connections": {
7275
Type: schema.TypeInt,
7376
Optional: true,
7477
Description: "maximum number of concurrent connections supported by the network offering",
78+
ForceNew: true,
7579
},
7680
"conserve_mode": {
7781
Type: schema.TypeBool,
7882
Optional: true,
7983
Description: "true if the network offering is IP conserve mode enabled",
84+
ForceNew: true,
8085
},
8186
"enable": {
8287
Type: schema.TypeBool,
8388
Optional: true,
8489
Description: "set to true if the offering is to be enabled during creation. Default is false",
90+
ForceNew: true,
8591
},
8692
"for_vpc": {
8793
Type: schema.TypeBool,
8894
Optional: true,
8995
Description: "true if network offering is meant to be used for VPC, false otherwise.",
96+
ForceNew: true,
9097
},
9198
"for_nsx": {
9299
Type: schema.TypeBool,
93100
Optional: true,
94101
Description: "true if network offering is meant to be used for NSX, false otherwise",
102+
ForceNew: true,
95103
},
96104
"internet_protocol": {
97105
Type: schema.TypeString,
98106
Optional: true,
99107
Description: "The internet protocol of network offering. Options are ipv4 and dualstack. Default is ipv4. dualstack will create a network offering that supports both IPv4 and IPv6",
108+
ForceNew: true,
100109
},
101110
"routing_mode": {
102111
Type: schema.TypeString,
103112
Optional: true,
104113
Description: "the routing mode for the network offering. Supported types are: Static or Dynamic.",
114+
ForceNew: true,
105115
},
106116
"specify_vlan": {
107117
Type: schema.TypeBool,
108118
Optional: true,
109119
Description: "true if network offering supports vlans, false otherwise",
120+
ForceNew: true,
110121
},
111122
"supported_services": {
112123
Type: schema.TypeSet,
113124
Elem: &schema.Schema{Type: schema.TypeString},
114125
Optional: true,
115126
Description: "the list of supported services",
127+
ForceNew: true,
116128
},
117129
"service_provider_list": {
118130
Type: schema.TypeMap,
119131
Optional: true,
120132
Description: "provider to service mapping. If not specified, the provider for the service will be mapped to the default provider on the physical network",
133+
ForceNew: true,
121134
},
122135
"specify_ip_ranges": {
123136
Type: schema.TypeBool,
124137
Optional: true,
125138
Description: "true if network offering supports specifying ip ranges; defaulted to false if not specified",
139+
ForceNew: true,
126140
},
127141
"specify_as_number": {
128142
Type: schema.TypeBool,
129143
Optional: true,
130144
Description: "true if network offering supports choosing AS number",
145+
ForceNew: true,
131146
},
132147
},
133148
}

0 commit comments

Comments
 (0)