You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "The network name label of the physical device dedicated to this traffic on a Hyperv host",
44
+
Type: schema.TypeString,
45
+
Optional: true,
46
+
ForceNew: true,
46
47
},
47
-
48
-
"type": {
49
-
Type: schema.TypeString,
50
-
Required:true,
51
-
ForceNew: true,
48
+
"isolation_method": {
49
+
Description: "Used if physical network has multiple isolation types and traffic type is public. Choose which isolation method. Valid options currently 'vlan' or 'vxlan', defaults to 'vlan'.",
50
+
Type: schema.TypeString,
51
+
Optional: true,
52
+
ForceNew: true,
52
53
},
53
-
54
54
"kvm_network_label": {
55
-
Type: schema.TypeString,
56
-
Optional: true,
55
+
Description: "The network name label of the physical device dedicated to this traffic on a KVM host",
56
+
Type: schema.TypeString,
57
+
Optional: true,
58
+
ForceNew: true,
57
59
},
58
-
59
-
"vlan": {
60
-
Type: schema.TypeString,
61
-
Optional: true,
60
+
"ovm3_network_label": {
61
+
Description: "The network name of the physical device dedicated to this traffic on an OVM3 host",
62
+
Type: schema.TypeString,
63
+
Optional: true,
64
+
ForceNew: true,
62
65
},
63
-
64
-
"xen_network_label": {
65
-
Type: schema.TypeString,
66
-
Optional: true,
66
+
"physical_network_id": {
67
+
Description: "the Physical Network ID",
68
+
Type: schema.TypeString,
69
+
Required: true,
70
+
ForceNew: true,
67
71
},
68
-
69
-
"vmware_network_label": {
70
-
Type: schema.TypeString,
71
-
Optional: true,
72
+
"traffic_type": {
73
+
Description: "the trafficType to be added to the physical network",
74
+
Type: schema.TypeString,
75
+
Required: true,
76
+
ForceNew: true,
77
+
ValidateFunc: validateTrafficType,
72
78
},
73
-
74
-
"hyperv_network_label": {
75
-
Type: schema.TypeString,
76
-
Optional: true,
79
+
"vlan": {
80
+
Description: "The VLAN id to be used for Management traffic by VMware host",
81
+
Type: schema.TypeString,
82
+
Optional: true,
83
+
ForceNew: true,
77
84
},
78
-
79
-
"ovm3_network_label": {
80
-
Type: schema.TypeString,
81
-
Optional: true,
85
+
"vmware_network_label": {
86
+
Description: "The network name label of the physical device dedicated to this traffic on a VMware host",
87
+
Type: schema.TypeString,
88
+
Optional: true,
89
+
ForceNew: true,
90
+
},
91
+
"xen_network_label": {
92
+
Description: "The network name label of the physical device dedicated to this traffic on a XenServer host",
93
+
Type: schema.TypeString,
94
+
Optional: true,
95
+
ForceNew: true,
82
96
},
83
97
},
84
98
}
@@ -98,6 +112,10 @@ func resourceCloudStackTrafficTypeCreate(d *schema.ResourceData, meta interface{
98
112
p.SetKvmnetworklabel(kvmNetworkLabel.(string))
99
113
}
100
114
115
+
ifv, ok:=d.GetOk("isolation_method"); ok {
116
+
p.SetIsolationmethod(v.(string))
117
+
}
118
+
101
119
ifvlan, ok:=d.GetOk("vlan"); ok {
102
120
p.SetVlan(vlan.(string))
103
121
}
@@ -126,6 +144,14 @@ func resourceCloudStackTrafficTypeCreate(d *schema.ResourceData, meta interface{
Description: "The network name label of the physical device dedicated to this traffic on a Hyperv host",
321
-
Type: schema.TypeString,
322
-
Optional: true,
323
-
ForceNew: true,
324
-
},
325
-
"isolation_method": {
326
-
Description: "Used if physical network has multiple isolation types and traffic type is public. Choose which isolation method. Valid options currently 'vlan' or 'vxlan', defaults to 'vlan'.",
327
-
Type: schema.TypeString,
328
-
Optional: true,
329
-
ForceNew: true,
330
-
},
331
-
"kvm_network_label": {
332
-
Description: "The network name label of the physical device dedicated to this traffic on a KVM host",
333
-
Type: schema.TypeString,
334
-
Optional: true,
335
-
ForceNew: true,
336
-
},
337
-
"ovm3_network_label": {
338
-
Description: "The network name of the physical device dedicated to this traffic on an OVM3 host",
339
-
Type: schema.TypeString,
340
-
Optional: true,
341
-
ForceNew: true,
342
-
},
343
-
"physical_network_id": {
344
-
Description: "the Physical Network ID",
345
-
Type: schema.TypeString,
346
-
Required: true,
347
-
ForceNew: true,
348
-
},
349
-
"traffic_type": {
350
-
Description: "the trafficType to be added to the physical network",
351
-
Type: schema.TypeString,
352
-
Required: true,
353
-
ForceNew: true,
354
-
ValidateFunc: validateTrafficType,
355
-
},
356
-
"vlan": {
357
-
Description: "The VLAN id to be used for Management traffic by VMware host",
358
-
Type: schema.TypeString,
359
-
Optional: true,
360
-
ForceNew: true,
361
-
},
362
-
"vmware_network_label": {
363
-
Description: "The network name label of the physical device dedicated to this traffic on a VMware host",
364
-
Type: schema.TypeString,
365
-
Optional: true,
366
-
ForceNew: true,
367
-
},
368
-
"xen_network_label": {
369
-
Description: "The network name label of the physical device dedicated to this traffic on a XenServer host",
0 commit comments