pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.13.0a1736849827__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_vsphere/__init__.py +28 -0
- pulumi_vsphere/_inputs.py +1816 -277
- pulumi_vsphere/_utilities.py +41 -5
- pulumi_vsphere/compute_cluster.py +937 -1488
- pulumi_vsphere/compute_cluster_host_group.py +67 -2
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +69 -34
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +41 -2
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +205 -2
- pulumi_vsphere/compute_cluster_vm_group.py +198 -2
- pulumi_vsphere/compute_cluster_vm_host_rule.py +73 -2
- pulumi_vsphere/config/__init__.pyi +5 -0
- pulumi_vsphere/config/vars.py +5 -0
- pulumi_vsphere/content_library.py +113 -12
- pulumi_vsphere/content_library_item.py +143 -2
- pulumi_vsphere/custom_attribute.py +77 -2
- pulumi_vsphere/datacenter.py +48 -40
- pulumi_vsphere/datastore_cluster.py +217 -366
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +159 -2
- pulumi_vsphere/distributed_port_group.py +416 -189
- pulumi_vsphere/distributed_virtual_switch.py +571 -830
- pulumi_vsphere/dpm_host_override.py +63 -2
- pulumi_vsphere/drs_vm_override.py +67 -2
- pulumi_vsphere/entity_permissions.py +64 -38
- pulumi_vsphere/file.py +21 -24
- pulumi_vsphere/folder.py +148 -30
- pulumi_vsphere/get_compute_cluster.py +16 -9
- pulumi_vsphere/get_compute_cluster_host_group.py +36 -25
- pulumi_vsphere/get_content_library.py +23 -15
- pulumi_vsphere/get_content_library_item.py +29 -13
- pulumi_vsphere/get_custom_attribute.py +14 -9
- pulumi_vsphere/get_datacenter.py +30 -12
- pulumi_vsphere/get_datastore.py +29 -21
- pulumi_vsphere/get_datastore_cluster.py +31 -10
- pulumi_vsphere/get_datastore_stats.py +63 -57
- pulumi_vsphere/get_distributed_virtual_switch.py +18 -9
- pulumi_vsphere/get_dynamic.py +35 -25
- pulumi_vsphere/get_folder.py +23 -11
- pulumi_vsphere/get_guest_os_customization.py +26 -52
- pulumi_vsphere/get_host.py +16 -9
- pulumi_vsphere/get_host_base_images.py +104 -0
- pulumi_vsphere/get_host_pci_device.py +28 -19
- pulumi_vsphere/get_host_thumbprint.py +41 -25
- pulumi_vsphere/get_host_vgpu_profile.py +20 -15
- pulumi_vsphere/get_license.py +20 -10
- pulumi_vsphere/get_network.py +80 -24
- pulumi_vsphere/get_ovf_vm_template.py +56 -5
- pulumi_vsphere/get_policy.py +13 -9
- pulumi_vsphere/get_resource_pool.py +29 -23
- pulumi_vsphere/get_role.py +23 -13
- pulumi_vsphere/get_tag.py +16 -9
- pulumi_vsphere/get_tag_category.py +16 -9
- pulumi_vsphere/get_vapp_container.py +15 -9
- pulumi_vsphere/get_virtual_machine.py +205 -48
- pulumi_vsphere/get_vmfs_disks.py +18 -9
- pulumi_vsphere/guest_os_customization.py +60 -5
- pulumi_vsphere/ha_vm_override.py +352 -380
- pulumi_vsphere/host.py +244 -64
- pulumi_vsphere/host_port_group.py +27 -24
- pulumi_vsphere/host_virtual_switch.py +209 -289
- pulumi_vsphere/license.py +5 -32
- pulumi_vsphere/nas_datastore.py +74 -9
- pulumi_vsphere/offline_software_depot.py +185 -0
- pulumi_vsphere/outputs.py +717 -270
- pulumi_vsphere/provider.py +7 -6
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +168 -411
- pulumi_vsphere/role.py +33 -2
- pulumi_vsphere/storage_drs_vm_override.py +133 -2
- pulumi_vsphere/supervisor.py +967 -0
- pulumi_vsphere/tag.py +159 -2
- pulumi_vsphere/tag_category.py +83 -2
- pulumi_vsphere/vapp_container.py +163 -2
- pulumi_vsphere/vapp_entity.py +147 -2
- pulumi_vsphere/virtual_disk.py +123 -36
- pulumi_vsphere/virtual_machine.py +698 -829
- pulumi_vsphere/virtual_machine_class.py +447 -0
- pulumi_vsphere/virtual_machine_snapshot.py +13 -12
- pulumi_vsphere/vm_storage_policy.py +120 -127
- pulumi_vsphere/vmfs_datastore.py +271 -2
- pulumi_vsphere/vnic.py +104 -105
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736849827.dist-info}/METADATA +7 -6
- pulumi_vsphere-4.13.0a1736849827.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736849827.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736849827.dist-info}/top_level.txt +0 -0
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -78,11 +83,17 @@ class DistributedPortGroupArgs:
|
|
|
78
83
|
may lead to errors when the port count grows past the amount specified. If you
|
|
79
84
|
specify `number_of_ports`, you may wish to set `auto_expand` to `false`.
|
|
80
85
|
:param pulumi.Input[bool] block_all_ports: Indicates whether to block all ports by default.
|
|
81
|
-
:param pulumi.Input[bool] block_override_allowed: Allow the port
|
|
82
|
-
policy to be overridden on an individual port.
|
|
86
|
+
:param pulumi.Input[bool] block_override_allowed: Allow the blocked setting of an individual port to override the setting in the portgroup.
|
|
83
87
|
:param pulumi.Input[bool] check_beacon: Enable beacon probing on the ports this policy applies to.
|
|
84
88
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
89
|
+
<<<<<<< HEAD
|
|
90
|
+
value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
91
|
+
for a reference on how to set values for custom attributes.
|
|
92
|
+
|
|
93
|
+
[docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
94
|
+
=======
|
|
85
95
|
value string to set for port group.
|
|
96
|
+
>>>>>>> 69c6e040 (fork)
|
|
86
97
|
|
|
87
98
|
> **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
88
99
|
connections and require vCenter Server.
|
|
@@ -99,52 +110,38 @@ class DistributedPortGroupArgs:
|
|
|
99
110
|
:param pulumi.Input[int] ingress_shaping_peak_bandwidth: The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
|
|
100
111
|
:param pulumi.Input[bool] lacp_enabled: Whether or not to enable LACP on all uplink ports.
|
|
101
112
|
:param pulumi.Input[str] lacp_mode: The uplink LACP mode to use. Can be one of active or passive.
|
|
102
|
-
:param pulumi.Input[bool] live_port_moving_allowed: Allow a port in
|
|
103
|
-
moved to another port group while it is connected.
|
|
113
|
+
:param pulumi.Input[bool] live_port_moving_allowed: Allow a live port to be moved in and out of the portgroup.
|
|
104
114
|
:param pulumi.Input[str] name: The name of the port group.
|
|
105
115
|
:param pulumi.Input[bool] netflow_enabled: Indicates whether to enable netflow on all ports.
|
|
106
|
-
:param pulumi.Input[bool] netflow_override_allowed: Allow the
|
|
107
|
-
[Netflow policy][netflow-policy] on this port group to be overridden on an
|
|
108
|
-
individual port.
|
|
116
|
+
:param pulumi.Input[bool] netflow_override_allowed: Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
|
|
109
117
|
:param pulumi.Input[str] network_resource_pool_key: The key of a network resource pool
|
|
110
118
|
to associate with this port group. The default is `-1`, which implies no
|
|
111
119
|
association.
|
|
112
|
-
:param pulumi.Input[bool] network_resource_pool_override_allowed: Allow the network
|
|
113
|
-
resource pool set on this port group to be overridden on an individual port.
|
|
120
|
+
:param pulumi.Input[bool] network_resource_pool_override_allowed: Allow the network resource pool of an individual port to override the setting in the portgroup.
|
|
114
121
|
:param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
115
122
|
:param pulumi.Input[int] number_of_ports: The number of ports available on this port
|
|
116
123
|
group. Cannot be decreased below the amount of used ports on the port group.
|
|
117
|
-
:param pulumi.Input[bool] port_config_reset_at_disconnect: Reset
|
|
118
|
-
settings defined on this port group policy when the port disconnects.
|
|
124
|
+
:param pulumi.Input[bool] port_config_reset_at_disconnect: Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
|
|
119
125
|
:param pulumi.Input[str] port_name_format: An optional formatting policy for naming of
|
|
120
126
|
the ports in this port group. See the `portNameFormat` attribute listed
|
|
121
127
|
[here][ext-vsphere-portname-format] for details on the format syntax.
|
|
122
128
|
|
|
123
|
-
[ext-vsphere-portname-format]: https://
|
|
129
|
+
[ext-vsphere-portname-format]: https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/DVPortgroupConfigInfo/
|
|
124
130
|
:param pulumi.Input[int] port_private_secondary_vlan_id: The secondary VLAN ID for this port.
|
|
125
|
-
:param pulumi.Input[bool] security_policy_override_allowed: Allow the
|
|
126
|
-
|
|
127
|
-
policy to be overridden on an individual port.
|
|
128
|
-
:param pulumi.Input[bool] shaping_override_allowed: Allow the
|
|
129
|
-
[traffic shaping options][traffic-shaping-settings] on this port group policy
|
|
130
|
-
to be overridden on an individual port.
|
|
131
|
+
:param pulumi.Input[bool] security_policy_override_allowed: Allow security policy settings on a port to override those on the portgroup.
|
|
132
|
+
:param pulumi.Input[bool] shaping_override_allowed: Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
|
|
131
133
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_uplinks: List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
|
|
132
134
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tag IDs to apply to this object.
|
|
133
135
|
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid,
|
|
134
136
|
failover_explicit, or loadbalance_loadbased.
|
|
135
|
-
:param pulumi.Input[bool] traffic_filter_override_allowed: Allow any
|
|
136
|
-
this port group to be overridden on an individual port.
|
|
137
|
+
:param pulumi.Input[bool] traffic_filter_override_allowed: Allow any filter policies set on the individual port to override those in the portgroup.
|
|
137
138
|
:param pulumi.Input[bool] tx_uplink: If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet
|
|
138
139
|
forwarded done by the switch.
|
|
139
140
|
:param pulumi.Input[str] type: The port group type. Can be one of `earlyBinding` (static
|
|
140
141
|
binding) or `ephemeral`. Default: `earlyBinding`.
|
|
141
|
-
:param pulumi.Input[bool] uplink_teaming_override_allowed: Allow the
|
|
142
|
-
[uplink teaming options][uplink-teaming-settings] on this port group to be
|
|
143
|
-
overridden on an individual port.
|
|
142
|
+
:param pulumi.Input[bool] uplink_teaming_override_allowed: Allow the uplink teaming policies on a port to override those on the portgroup.
|
|
144
143
|
:param pulumi.Input[int] vlan_id: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
145
|
-
:param pulumi.Input[bool] vlan_override_allowed: Allow the
|
|
146
|
-
[VLAN settings][vlan-settings] on this port group to be overridden on an
|
|
147
|
-
individual port.
|
|
144
|
+
:param pulumi.Input[bool] vlan_override_allowed: Allow the VLAN configuration on a port to override those on the portgroup.
|
|
148
145
|
:param pulumi.Input[Sequence[pulumi.Input['DistributedPortGroupVlanRangeArgs']]] vlan_ranges: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
149
146
|
"""
|
|
150
147
|
pulumi.set(__self__, "distributed_virtual_switch_uuid", distributed_virtual_switch_uuid)
|
|
@@ -334,8 +331,7 @@ class DistributedPortGroupArgs:
|
|
|
334
331
|
@pulumi.getter(name="blockOverrideAllowed")
|
|
335
332
|
def block_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
336
333
|
"""
|
|
337
|
-
Allow the port
|
|
338
|
-
policy to be overridden on an individual port.
|
|
334
|
+
Allow the blocked setting of an individual port to override the setting in the portgroup.
|
|
339
335
|
"""
|
|
340
336
|
return pulumi.get(self, "block_override_allowed")
|
|
341
337
|
|
|
@@ -360,7 +356,14 @@ class DistributedPortGroupArgs:
|
|
|
360
356
|
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
361
357
|
"""
|
|
362
358
|
Map of custom attribute ids to attribute
|
|
359
|
+
<<<<<<< HEAD
|
|
360
|
+
value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
361
|
+
for a reference on how to set values for custom attributes.
|
|
362
|
+
|
|
363
|
+
[docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
364
|
+
=======
|
|
363
365
|
value string to set for port group.
|
|
366
|
+
>>>>>>> 69c6e040 (fork)
|
|
364
367
|
|
|
365
368
|
> **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
366
369
|
connections and require vCenter Server.
|
|
@@ -531,8 +534,7 @@ class DistributedPortGroupArgs:
|
|
|
531
534
|
@pulumi.getter(name="livePortMovingAllowed")
|
|
532
535
|
def live_port_moving_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
533
536
|
"""
|
|
534
|
-
Allow a port in
|
|
535
|
-
moved to another port group while it is connected.
|
|
537
|
+
Allow a live port to be moved in and out of the portgroup.
|
|
536
538
|
"""
|
|
537
539
|
return pulumi.get(self, "live_port_moving_allowed")
|
|
538
540
|
|
|
@@ -568,9 +570,7 @@ class DistributedPortGroupArgs:
|
|
|
568
570
|
@pulumi.getter(name="netflowOverrideAllowed")
|
|
569
571
|
def netflow_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
570
572
|
"""
|
|
571
|
-
Allow the
|
|
572
|
-
[Netflow policy][netflow-policy] on this port group to be overridden on an
|
|
573
|
-
individual port.
|
|
573
|
+
Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
|
|
574
574
|
"""
|
|
575
575
|
return pulumi.get(self, "netflow_override_allowed")
|
|
576
576
|
|
|
@@ -596,8 +596,7 @@ class DistributedPortGroupArgs:
|
|
|
596
596
|
@pulumi.getter(name="networkResourcePoolOverrideAllowed")
|
|
597
597
|
def network_resource_pool_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
598
598
|
"""
|
|
599
|
-
Allow the network
|
|
600
|
-
resource pool set on this port group to be overridden on an individual port.
|
|
599
|
+
Allow the network resource pool of an individual port to override the setting in the portgroup.
|
|
601
600
|
"""
|
|
602
601
|
return pulumi.get(self, "network_resource_pool_override_allowed")
|
|
603
602
|
|
|
@@ -634,8 +633,7 @@ class DistributedPortGroupArgs:
|
|
|
634
633
|
@pulumi.getter(name="portConfigResetAtDisconnect")
|
|
635
634
|
def port_config_reset_at_disconnect(self) -> Optional[pulumi.Input[bool]]:
|
|
636
635
|
"""
|
|
637
|
-
Reset
|
|
638
|
-
settings defined on this port group policy when the port disconnects.
|
|
636
|
+
Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
|
|
639
637
|
"""
|
|
640
638
|
return pulumi.get(self, "port_config_reset_at_disconnect")
|
|
641
639
|
|
|
@@ -651,7 +649,7 @@ class DistributedPortGroupArgs:
|
|
|
651
649
|
the ports in this port group. See the `portNameFormat` attribute listed
|
|
652
650
|
[here][ext-vsphere-portname-format] for details on the format syntax.
|
|
653
651
|
|
|
654
|
-
[ext-vsphere-portname-format]: https://
|
|
652
|
+
[ext-vsphere-portname-format]: https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/DVPortgroupConfigInfo/
|
|
655
653
|
"""
|
|
656
654
|
return pulumi.get(self, "port_name_format")
|
|
657
655
|
|
|
@@ -675,9 +673,7 @@ class DistributedPortGroupArgs:
|
|
|
675
673
|
@pulumi.getter(name="securityPolicyOverrideAllowed")
|
|
676
674
|
def security_policy_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
677
675
|
"""
|
|
678
|
-
Allow the
|
|
679
|
-
[security policy settings][sec-policy-settings] defined in this port group
|
|
680
|
-
policy to be overridden on an individual port.
|
|
676
|
+
Allow security policy settings on a port to override those on the portgroup.
|
|
681
677
|
"""
|
|
682
678
|
return pulumi.get(self, "security_policy_override_allowed")
|
|
683
679
|
|
|
@@ -689,9 +685,7 @@ class DistributedPortGroupArgs:
|
|
|
689
685
|
@pulumi.getter(name="shapingOverrideAllowed")
|
|
690
686
|
def shaping_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
691
687
|
"""
|
|
692
|
-
Allow the
|
|
693
|
-
[traffic shaping options][traffic-shaping-settings] on this port group policy
|
|
694
|
-
to be overridden on an individual port.
|
|
688
|
+
Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
|
|
695
689
|
"""
|
|
696
690
|
return pulumi.get(self, "shaping_override_allowed")
|
|
697
691
|
|
|
@@ -740,8 +734,7 @@ class DistributedPortGroupArgs:
|
|
|
740
734
|
@pulumi.getter(name="trafficFilterOverrideAllowed")
|
|
741
735
|
def traffic_filter_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
742
736
|
"""
|
|
743
|
-
Allow any
|
|
744
|
-
this port group to be overridden on an individual port.
|
|
737
|
+
Allow any filter policies set on the individual port to override those in the portgroup.
|
|
745
738
|
"""
|
|
746
739
|
return pulumi.get(self, "traffic_filter_override_allowed")
|
|
747
740
|
|
|
@@ -779,9 +772,7 @@ class DistributedPortGroupArgs:
|
|
|
779
772
|
@pulumi.getter(name="uplinkTeamingOverrideAllowed")
|
|
780
773
|
def uplink_teaming_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
781
774
|
"""
|
|
782
|
-
Allow the
|
|
783
|
-
[uplink teaming options][uplink-teaming-settings] on this port group to be
|
|
784
|
-
overridden on an individual port.
|
|
775
|
+
Allow the uplink teaming policies on a port to override those on the portgroup.
|
|
785
776
|
"""
|
|
786
777
|
return pulumi.get(self, "uplink_teaming_override_allowed")
|
|
787
778
|
|
|
@@ -805,9 +796,7 @@ class DistributedPortGroupArgs:
|
|
|
805
796
|
@pulumi.getter(name="vlanOverrideAllowed")
|
|
806
797
|
def vlan_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
807
798
|
"""
|
|
808
|
-
Allow the
|
|
809
|
-
[VLAN settings][vlan-settings] on this port group to be overridden on an
|
|
810
|
-
individual port.
|
|
799
|
+
Allow the VLAN configuration on a port to override those on the portgroup.
|
|
811
800
|
"""
|
|
812
801
|
return pulumi.get(self, "vlan_override_allowed")
|
|
813
802
|
|
|
@@ -893,13 +882,19 @@ class _DistributedPortGroupState:
|
|
|
893
882
|
may lead to errors when the port count grows past the amount specified. If you
|
|
894
883
|
specify `number_of_ports`, you may wish to set `auto_expand` to `false`.
|
|
895
884
|
:param pulumi.Input[bool] block_all_ports: Indicates whether to block all ports by default.
|
|
896
|
-
:param pulumi.Input[bool] block_override_allowed: Allow the port
|
|
897
|
-
policy to be overridden on an individual port.
|
|
885
|
+
:param pulumi.Input[bool] block_override_allowed: Allow the blocked setting of an individual port to override the setting in the portgroup.
|
|
898
886
|
:param pulumi.Input[bool] check_beacon: Enable beacon probing on the ports this policy applies to.
|
|
899
887
|
:param pulumi.Input[str] config_version: The current version of the port group configuration,
|
|
900
888
|
incremented by subsequent updates to the port group.
|
|
901
889
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
890
|
+
<<<<<<< HEAD
|
|
891
|
+
value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
892
|
+
for a reference on how to set values for custom attributes.
|
|
893
|
+
|
|
894
|
+
[docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
895
|
+
=======
|
|
902
896
|
value string to set for port group.
|
|
897
|
+
>>>>>>> 69c6e040 (fork)
|
|
903
898
|
|
|
904
899
|
> **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
905
900
|
connections and require vCenter Server.
|
|
@@ -919,52 +914,38 @@ class _DistributedPortGroupState:
|
|
|
919
914
|
:param pulumi.Input[str] key: The generated UUID of the port group.
|
|
920
915
|
:param pulumi.Input[bool] lacp_enabled: Whether or not to enable LACP on all uplink ports.
|
|
921
916
|
:param pulumi.Input[str] lacp_mode: The uplink LACP mode to use. Can be one of active or passive.
|
|
922
|
-
:param pulumi.Input[bool] live_port_moving_allowed: Allow a port in
|
|
923
|
-
moved to another port group while it is connected.
|
|
917
|
+
:param pulumi.Input[bool] live_port_moving_allowed: Allow a live port to be moved in and out of the portgroup.
|
|
924
918
|
:param pulumi.Input[str] name: The name of the port group.
|
|
925
919
|
:param pulumi.Input[bool] netflow_enabled: Indicates whether to enable netflow on all ports.
|
|
926
|
-
:param pulumi.Input[bool] netflow_override_allowed: Allow the
|
|
927
|
-
[Netflow policy][netflow-policy] on this port group to be overridden on an
|
|
928
|
-
individual port.
|
|
920
|
+
:param pulumi.Input[bool] netflow_override_allowed: Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
|
|
929
921
|
:param pulumi.Input[str] network_resource_pool_key: The key of a network resource pool
|
|
930
922
|
to associate with this port group. The default is `-1`, which implies no
|
|
931
923
|
association.
|
|
932
|
-
:param pulumi.Input[bool] network_resource_pool_override_allowed: Allow the network
|
|
933
|
-
resource pool set on this port group to be overridden on an individual port.
|
|
924
|
+
:param pulumi.Input[bool] network_resource_pool_override_allowed: Allow the network resource pool of an individual port to override the setting in the portgroup.
|
|
934
925
|
:param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
935
926
|
:param pulumi.Input[int] number_of_ports: The number of ports available on this port
|
|
936
927
|
group. Cannot be decreased below the amount of used ports on the port group.
|
|
937
|
-
:param pulumi.Input[bool] port_config_reset_at_disconnect: Reset
|
|
938
|
-
settings defined on this port group policy when the port disconnects.
|
|
928
|
+
:param pulumi.Input[bool] port_config_reset_at_disconnect: Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
|
|
939
929
|
:param pulumi.Input[str] port_name_format: An optional formatting policy for naming of
|
|
940
930
|
the ports in this port group. See the `portNameFormat` attribute listed
|
|
941
931
|
[here][ext-vsphere-portname-format] for details on the format syntax.
|
|
942
932
|
|
|
943
|
-
[ext-vsphere-portname-format]: https://
|
|
933
|
+
[ext-vsphere-portname-format]: https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/DVPortgroupConfigInfo/
|
|
944
934
|
:param pulumi.Input[int] port_private_secondary_vlan_id: The secondary VLAN ID for this port.
|
|
945
|
-
:param pulumi.Input[bool] security_policy_override_allowed: Allow the
|
|
946
|
-
|
|
947
|
-
policy to be overridden on an individual port.
|
|
948
|
-
:param pulumi.Input[bool] shaping_override_allowed: Allow the
|
|
949
|
-
[traffic shaping options][traffic-shaping-settings] on this port group policy
|
|
950
|
-
to be overridden on an individual port.
|
|
935
|
+
:param pulumi.Input[bool] security_policy_override_allowed: Allow security policy settings on a port to override those on the portgroup.
|
|
936
|
+
:param pulumi.Input[bool] shaping_override_allowed: Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
|
|
951
937
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_uplinks: List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
|
|
952
938
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tag IDs to apply to this object.
|
|
953
939
|
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid,
|
|
954
940
|
failover_explicit, or loadbalance_loadbased.
|
|
955
|
-
:param pulumi.Input[bool] traffic_filter_override_allowed: Allow any
|
|
956
|
-
this port group to be overridden on an individual port.
|
|
941
|
+
:param pulumi.Input[bool] traffic_filter_override_allowed: Allow any filter policies set on the individual port to override those in the portgroup.
|
|
957
942
|
:param pulumi.Input[bool] tx_uplink: If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet
|
|
958
943
|
forwarded done by the switch.
|
|
959
944
|
:param pulumi.Input[str] type: The port group type. Can be one of `earlyBinding` (static
|
|
960
945
|
binding) or `ephemeral`. Default: `earlyBinding`.
|
|
961
|
-
:param pulumi.Input[bool] uplink_teaming_override_allowed: Allow the
|
|
962
|
-
[uplink teaming options][uplink-teaming-settings] on this port group to be
|
|
963
|
-
overridden on an individual port.
|
|
946
|
+
:param pulumi.Input[bool] uplink_teaming_override_allowed: Allow the uplink teaming policies on a port to override those on the portgroup.
|
|
964
947
|
:param pulumi.Input[int] vlan_id: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
965
|
-
:param pulumi.Input[bool] vlan_override_allowed: Allow the
|
|
966
|
-
[VLAN settings][vlan-settings] on this port group to be overridden on an
|
|
967
|
-
individual port.
|
|
948
|
+
:param pulumi.Input[bool] vlan_override_allowed: Allow the VLAN configuration on a port to override those on the portgroup.
|
|
968
949
|
:param pulumi.Input[Sequence[pulumi.Input['DistributedPortGroupVlanRangeArgs']]] vlan_ranges: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
969
950
|
"""
|
|
970
951
|
if active_uplinks is not None:
|
|
@@ -1146,8 +1127,7 @@ class _DistributedPortGroupState:
|
|
|
1146
1127
|
@pulumi.getter(name="blockOverrideAllowed")
|
|
1147
1128
|
def block_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
1148
1129
|
"""
|
|
1149
|
-
Allow the port
|
|
1150
|
-
policy to be overridden on an individual port.
|
|
1130
|
+
Allow the blocked setting of an individual port to override the setting in the portgroup.
|
|
1151
1131
|
"""
|
|
1152
1132
|
return pulumi.get(self, "block_override_allowed")
|
|
1153
1133
|
|
|
@@ -1185,7 +1165,14 @@ class _DistributedPortGroupState:
|
|
|
1185
1165
|
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
1186
1166
|
"""
|
|
1187
1167
|
Map of custom attribute ids to attribute
|
|
1168
|
+
<<<<<<< HEAD
|
|
1169
|
+
value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
1170
|
+
for a reference on how to set values for custom attributes.
|
|
1171
|
+
|
|
1172
|
+
[docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
1173
|
+
=======
|
|
1188
1174
|
value string to set for port group.
|
|
1175
|
+
>>>>>>> 69c6e040 (fork)
|
|
1189
1176
|
|
|
1190
1177
|
> **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
1191
1178
|
connections and require vCenter Server.
|
|
@@ -1381,8 +1368,7 @@ class _DistributedPortGroupState:
|
|
|
1381
1368
|
@pulumi.getter(name="livePortMovingAllowed")
|
|
1382
1369
|
def live_port_moving_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
1383
1370
|
"""
|
|
1384
|
-
Allow a port in
|
|
1385
|
-
moved to another port group while it is connected.
|
|
1371
|
+
Allow a live port to be moved in and out of the portgroup.
|
|
1386
1372
|
"""
|
|
1387
1373
|
return pulumi.get(self, "live_port_moving_allowed")
|
|
1388
1374
|
|
|
@@ -1418,9 +1404,7 @@ class _DistributedPortGroupState:
|
|
|
1418
1404
|
@pulumi.getter(name="netflowOverrideAllowed")
|
|
1419
1405
|
def netflow_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
1420
1406
|
"""
|
|
1421
|
-
Allow the
|
|
1422
|
-
[Netflow policy][netflow-policy] on this port group to be overridden on an
|
|
1423
|
-
individual port.
|
|
1407
|
+
Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
|
|
1424
1408
|
"""
|
|
1425
1409
|
return pulumi.get(self, "netflow_override_allowed")
|
|
1426
1410
|
|
|
@@ -1446,8 +1430,7 @@ class _DistributedPortGroupState:
|
|
|
1446
1430
|
@pulumi.getter(name="networkResourcePoolOverrideAllowed")
|
|
1447
1431
|
def network_resource_pool_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
1448
1432
|
"""
|
|
1449
|
-
Allow the network
|
|
1450
|
-
resource pool set on this port group to be overridden on an individual port.
|
|
1433
|
+
Allow the network resource pool of an individual port to override the setting in the portgroup.
|
|
1451
1434
|
"""
|
|
1452
1435
|
return pulumi.get(self, "network_resource_pool_override_allowed")
|
|
1453
1436
|
|
|
@@ -1484,8 +1467,7 @@ class _DistributedPortGroupState:
|
|
|
1484
1467
|
@pulumi.getter(name="portConfigResetAtDisconnect")
|
|
1485
1468
|
def port_config_reset_at_disconnect(self) -> Optional[pulumi.Input[bool]]:
|
|
1486
1469
|
"""
|
|
1487
|
-
Reset
|
|
1488
|
-
settings defined on this port group policy when the port disconnects.
|
|
1470
|
+
Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
|
|
1489
1471
|
"""
|
|
1490
1472
|
return pulumi.get(self, "port_config_reset_at_disconnect")
|
|
1491
1473
|
|
|
@@ -1501,7 +1483,7 @@ class _DistributedPortGroupState:
|
|
|
1501
1483
|
the ports in this port group. See the `portNameFormat` attribute listed
|
|
1502
1484
|
[here][ext-vsphere-portname-format] for details on the format syntax.
|
|
1503
1485
|
|
|
1504
|
-
[ext-vsphere-portname-format]: https://
|
|
1486
|
+
[ext-vsphere-portname-format]: https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/DVPortgroupConfigInfo/
|
|
1505
1487
|
"""
|
|
1506
1488
|
return pulumi.get(self, "port_name_format")
|
|
1507
1489
|
|
|
@@ -1525,9 +1507,7 @@ class _DistributedPortGroupState:
|
|
|
1525
1507
|
@pulumi.getter(name="securityPolicyOverrideAllowed")
|
|
1526
1508
|
def security_policy_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
1527
1509
|
"""
|
|
1528
|
-
Allow the
|
|
1529
|
-
[security policy settings][sec-policy-settings] defined in this port group
|
|
1530
|
-
policy to be overridden on an individual port.
|
|
1510
|
+
Allow security policy settings on a port to override those on the portgroup.
|
|
1531
1511
|
"""
|
|
1532
1512
|
return pulumi.get(self, "security_policy_override_allowed")
|
|
1533
1513
|
|
|
@@ -1539,9 +1519,7 @@ class _DistributedPortGroupState:
|
|
|
1539
1519
|
@pulumi.getter(name="shapingOverrideAllowed")
|
|
1540
1520
|
def shaping_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
1541
1521
|
"""
|
|
1542
|
-
Allow the
|
|
1543
|
-
[traffic shaping options][traffic-shaping-settings] on this port group policy
|
|
1544
|
-
to be overridden on an individual port.
|
|
1522
|
+
Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
|
|
1545
1523
|
"""
|
|
1546
1524
|
return pulumi.get(self, "shaping_override_allowed")
|
|
1547
1525
|
|
|
@@ -1590,8 +1568,7 @@ class _DistributedPortGroupState:
|
|
|
1590
1568
|
@pulumi.getter(name="trafficFilterOverrideAllowed")
|
|
1591
1569
|
def traffic_filter_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
1592
1570
|
"""
|
|
1593
|
-
Allow any
|
|
1594
|
-
this port group to be overridden on an individual port.
|
|
1571
|
+
Allow any filter policies set on the individual port to override those in the portgroup.
|
|
1595
1572
|
"""
|
|
1596
1573
|
return pulumi.get(self, "traffic_filter_override_allowed")
|
|
1597
1574
|
|
|
@@ -1629,9 +1606,7 @@ class _DistributedPortGroupState:
|
|
|
1629
1606
|
@pulumi.getter(name="uplinkTeamingOverrideAllowed")
|
|
1630
1607
|
def uplink_teaming_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
1631
1608
|
"""
|
|
1632
|
-
Allow the
|
|
1633
|
-
[uplink teaming options][uplink-teaming-settings] on this port group to be
|
|
1634
|
-
overridden on an individual port.
|
|
1609
|
+
Allow the uplink teaming policies on a port to override those on the portgroup.
|
|
1635
1610
|
"""
|
|
1636
1611
|
return pulumi.get(self, "uplink_teaming_override_allowed")
|
|
1637
1612
|
|
|
@@ -1655,9 +1630,7 @@ class _DistributedPortGroupState:
|
|
|
1655
1630
|
@pulumi.getter(name="vlanOverrideAllowed")
|
|
1656
1631
|
def vlan_override_allowed(self) -> Optional[pulumi.Input[bool]]:
|
|
1657
1632
|
"""
|
|
1658
|
-
Allow the
|
|
1659
|
-
[VLAN settings][vlan-settings] on this port group to be overridden on an
|
|
1660
|
-
individual port.
|
|
1633
|
+
Allow the VLAN configuration on a port to override those on the portgroup.
|
|
1661
1634
|
"""
|
|
1662
1635
|
return pulumi.get(self, "vlan_override_allowed")
|
|
1663
1636
|
|
|
@@ -1728,10 +1701,149 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
1728
1701
|
uplink_teaming_override_allowed: Optional[pulumi.Input[bool]] = None,
|
|
1729
1702
|
vlan_id: Optional[pulumi.Input[int]] = None,
|
|
1730
1703
|
vlan_override_allowed: Optional[pulumi.Input[bool]] = None,
|
|
1731
|
-
vlan_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
1704
|
+
vlan_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DistributedPortGroupVlanRangeArgs', 'DistributedPortGroupVlanRangeArgsDict']]]]] = None,
|
|
1732
1705
|
__props__=None):
|
|
1733
1706
|
"""
|
|
1734
|
-
|
|
1707
|
+
The `DistributedPortGroup` resource can be used to manage
|
|
1708
|
+
distributed port groups connected to vSphere Distributed Switches (VDS).
|
|
1709
|
+
A vSphere Distributed Switch can be managed by the
|
|
1710
|
+
`DistributedVirtualSwitch` resource.
|
|
1711
|
+
|
|
1712
|
+
Distributed port groups can be used as networks for virtual machines, allowing
|
|
1713
|
+
the virtual machines to use the networking supplied by a vSphere Distributed
|
|
1714
|
+
Switch, with a set of policies that apply to that individual network, if
|
|
1715
|
+
desired.
|
|
1716
|
+
|
|
1717
|
+
* For an overview on vSphere networking concepts, refer to the vSphere
|
|
1718
|
+
[product documentation][ref-vsphere-net-concepts].
|
|
1719
|
+
|
|
1720
|
+
* For more information on distributed port groups, refer to the vSphere
|
|
1721
|
+
[product documentation][ref-vsphere-dvportgroup].
|
|
1722
|
+
|
|
1723
|
+
[ref-vsphere-net-concepts]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-2B11DBB8-CB3C-4AFF-8885-EFEA0FC562F4.html
|
|
1724
|
+
[ref-vsphere-dvportgroup]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-69933F6E-2442-46CF-AA17-1196CB9A0A09.html
|
|
1725
|
+
|
|
1726
|
+
> **NOTE:** This resource requires vCenter and is not available on
|
|
1727
|
+
direct ESXi host connections.
|
|
1728
|
+
|
|
1729
|
+
## Example Usage
|
|
1730
|
+
|
|
1731
|
+
The configuration below builds on the example given in the
|
|
1732
|
+
`DistributedVirtualSwitch` resource by
|
|
1733
|
+
adding the `DistributedPortGroup` resource, attaching itself to the
|
|
1734
|
+
vSphere Distributed Switch and assigning VLAN ID 1000.
|
|
1735
|
+
|
|
1736
|
+
```python
|
|
1737
|
+
import pulumi
|
|
1738
|
+
import pulumi_vsphere as vsphere
|
|
1739
|
+
|
|
1740
|
+
config = pulumi.Config()
|
|
1741
|
+
hosts = config.get_object("hosts")
|
|
1742
|
+
if hosts is None:
|
|
1743
|
+
hosts = [
|
|
1744
|
+
"esxi-01.example.com",
|
|
1745
|
+
"esxi-02.example.com",
|
|
1746
|
+
"esxi-03.example.com",
|
|
1747
|
+
]
|
|
1748
|
+
network_interfaces = config.get_object("networkInterfaces")
|
|
1749
|
+
if network_interfaces is None:
|
|
1750
|
+
network_interfaces = [
|
|
1751
|
+
"vmnic0",
|
|
1752
|
+
"vmnic1",
|
|
1753
|
+
"vmnic2",
|
|
1754
|
+
"vmnic3",
|
|
1755
|
+
]
|
|
1756
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
1757
|
+
host = [vsphere.get_host(name=hosts[__index],
|
|
1758
|
+
datacenter_id=datacenter.id) for __index in range(len(hosts))]
|
|
1759
|
+
vds = vsphere.DistributedVirtualSwitch("vds",
|
|
1760
|
+
name="vds-01",
|
|
1761
|
+
datacenter_id=datacenter.id,
|
|
1762
|
+
uplinks=[
|
|
1763
|
+
"uplink1",
|
|
1764
|
+
"uplink2",
|
|
1765
|
+
"uplink3",
|
|
1766
|
+
"uplink4",
|
|
1767
|
+
],
|
|
1768
|
+
active_uplinks=[
|
|
1769
|
+
"uplink1",
|
|
1770
|
+
"uplink2",
|
|
1771
|
+
],
|
|
1772
|
+
standby_uplinks=[
|
|
1773
|
+
"uplink3",
|
|
1774
|
+
"uplink4",
|
|
1775
|
+
],
|
|
1776
|
+
hosts=[
|
|
1777
|
+
{
|
|
1778
|
+
"host_system_id": host[0].id,
|
|
1779
|
+
"devices": [network_interfaces],
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"host_system_id": host[1].id,
|
|
1783
|
+
"devices": [network_interfaces],
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"host_system_id": host[2].id,
|
|
1787
|
+
"devices": [network_interfaces],
|
|
1788
|
+
},
|
|
1789
|
+
])
|
|
1790
|
+
pg = vsphere.DistributedPortGroup("pg",
|
|
1791
|
+
name="pg-01",
|
|
1792
|
+
distributed_virtual_switch_uuid=vds.id,
|
|
1793
|
+
vlan_id=1000)
|
|
1794
|
+
```
|
|
1795
|
+
|
|
1796
|
+
### Overriding VDS policies
|
|
1797
|
+
|
|
1798
|
+
All of the default port policies available in the
|
|
1799
|
+
`DistributedVirtualSwitch` resource can be overridden on the port
|
|
1800
|
+
group level by specifying new settings for them.
|
|
1801
|
+
|
|
1802
|
+
As an example, we also take this example from the
|
|
1803
|
+
`DistributedVirtualSwitch` resource where we manually specify our
|
|
1804
|
+
uplink count and uplink order. While the vSphere Distributed Switch has a
|
|
1805
|
+
default policy of using the first uplink as an active uplink and the second
|
|
1806
|
+
one as a standby, the overridden port group policy means that both uplinks
|
|
1807
|
+
will be used as active uplinks in this specific port group.
|
|
1808
|
+
|
|
1809
|
+
```python
|
|
1810
|
+
import pulumi
|
|
1811
|
+
import pulumi_vsphere as vsphere
|
|
1812
|
+
|
|
1813
|
+
vds = vsphere.DistributedVirtualSwitch("vds",
|
|
1814
|
+
name="vds-01",
|
|
1815
|
+
datacenter_id=datacenter["id"],
|
|
1816
|
+
uplinks=[
|
|
1817
|
+
"uplink1",
|
|
1818
|
+
"uplink2",
|
|
1819
|
+
],
|
|
1820
|
+
active_uplinks=["uplink1"],
|
|
1821
|
+
standby_uplinks=["uplink2"])
|
|
1822
|
+
pg = vsphere.DistributedPortGroup("pg",
|
|
1823
|
+
name="pg-01",
|
|
1824
|
+
distributed_virtual_switch_uuid=vds.id,
|
|
1825
|
+
vlan_id=1000,
|
|
1826
|
+
active_uplinks=[
|
|
1827
|
+
"uplink1",
|
|
1828
|
+
"uplink2",
|
|
1829
|
+
],
|
|
1830
|
+
standby_uplinks=[])
|
|
1831
|
+
```
|
|
1832
|
+
|
|
1833
|
+
## Import
|
|
1834
|
+
|
|
1835
|
+
An existing port group can be imported into this resource using
|
|
1836
|
+
|
|
1837
|
+
the managed object id of the port group, via the following command:
|
|
1838
|
+
|
|
1839
|
+
```sh
|
|
1840
|
+
$ pulumi import vsphere:index/distributedPortGroup:DistributedPortGroup pg /dc-01/network/pg-01
|
|
1841
|
+
```
|
|
1842
|
+
|
|
1843
|
+
The above would import the port group named `pg-01` that is located in the `dc-01`
|
|
1844
|
+
|
|
1845
|
+
datacenter.
|
|
1846
|
+
|
|
1735
1847
|
:param str resource_name: The name of the resource.
|
|
1736
1848
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1737
1849
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] active_uplinks: List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
|
|
@@ -1746,11 +1858,17 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
1746
1858
|
may lead to errors when the port count grows past the amount specified. If you
|
|
1747
1859
|
specify `number_of_ports`, you may wish to set `auto_expand` to `false`.
|
|
1748
1860
|
:param pulumi.Input[bool] block_all_ports: Indicates whether to block all ports by default.
|
|
1749
|
-
:param pulumi.Input[bool] block_override_allowed: Allow the port
|
|
1750
|
-
policy to be overridden on an individual port.
|
|
1861
|
+
:param pulumi.Input[bool] block_override_allowed: Allow the blocked setting of an individual port to override the setting in the portgroup.
|
|
1751
1862
|
:param pulumi.Input[bool] check_beacon: Enable beacon probing on the ports this policy applies to.
|
|
1752
1863
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
1864
|
+
<<<<<<< HEAD
|
|
1865
|
+
value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
1866
|
+
for a reference on how to set values for custom attributes.
|
|
1867
|
+
|
|
1868
|
+
[docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
1869
|
+
=======
|
|
1753
1870
|
value string to set for port group.
|
|
1871
|
+
>>>>>>> 69c6e040 (fork)
|
|
1754
1872
|
|
|
1755
1873
|
> **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
1756
1874
|
connections and require vCenter Server.
|
|
@@ -1769,53 +1887,39 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
1769
1887
|
:param pulumi.Input[int] ingress_shaping_peak_bandwidth: The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
|
|
1770
1888
|
:param pulumi.Input[bool] lacp_enabled: Whether or not to enable LACP on all uplink ports.
|
|
1771
1889
|
:param pulumi.Input[str] lacp_mode: The uplink LACP mode to use. Can be one of active or passive.
|
|
1772
|
-
:param pulumi.Input[bool] live_port_moving_allowed: Allow a port in
|
|
1773
|
-
moved to another port group while it is connected.
|
|
1890
|
+
:param pulumi.Input[bool] live_port_moving_allowed: Allow a live port to be moved in and out of the portgroup.
|
|
1774
1891
|
:param pulumi.Input[str] name: The name of the port group.
|
|
1775
1892
|
:param pulumi.Input[bool] netflow_enabled: Indicates whether to enable netflow on all ports.
|
|
1776
|
-
:param pulumi.Input[bool] netflow_override_allowed: Allow the
|
|
1777
|
-
[Netflow policy][netflow-policy] on this port group to be overridden on an
|
|
1778
|
-
individual port.
|
|
1893
|
+
:param pulumi.Input[bool] netflow_override_allowed: Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
|
|
1779
1894
|
:param pulumi.Input[str] network_resource_pool_key: The key of a network resource pool
|
|
1780
1895
|
to associate with this port group. The default is `-1`, which implies no
|
|
1781
1896
|
association.
|
|
1782
|
-
:param pulumi.Input[bool] network_resource_pool_override_allowed: Allow the network
|
|
1783
|
-
resource pool set on this port group to be overridden on an individual port.
|
|
1897
|
+
:param pulumi.Input[bool] network_resource_pool_override_allowed: Allow the network resource pool of an individual port to override the setting in the portgroup.
|
|
1784
1898
|
:param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
1785
1899
|
:param pulumi.Input[int] number_of_ports: The number of ports available on this port
|
|
1786
1900
|
group. Cannot be decreased below the amount of used ports on the port group.
|
|
1787
|
-
:param pulumi.Input[bool] port_config_reset_at_disconnect: Reset
|
|
1788
|
-
settings defined on this port group policy when the port disconnects.
|
|
1901
|
+
:param pulumi.Input[bool] port_config_reset_at_disconnect: Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
|
|
1789
1902
|
:param pulumi.Input[str] port_name_format: An optional formatting policy for naming of
|
|
1790
1903
|
the ports in this port group. See the `portNameFormat` attribute listed
|
|
1791
1904
|
[here][ext-vsphere-portname-format] for details on the format syntax.
|
|
1792
1905
|
|
|
1793
|
-
[ext-vsphere-portname-format]: https://
|
|
1906
|
+
[ext-vsphere-portname-format]: https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/DVPortgroupConfigInfo/
|
|
1794
1907
|
:param pulumi.Input[int] port_private_secondary_vlan_id: The secondary VLAN ID for this port.
|
|
1795
|
-
:param pulumi.Input[bool] security_policy_override_allowed: Allow the
|
|
1796
|
-
|
|
1797
|
-
policy to be overridden on an individual port.
|
|
1798
|
-
:param pulumi.Input[bool] shaping_override_allowed: Allow the
|
|
1799
|
-
[traffic shaping options][traffic-shaping-settings] on this port group policy
|
|
1800
|
-
to be overridden on an individual port.
|
|
1908
|
+
:param pulumi.Input[bool] security_policy_override_allowed: Allow security policy settings on a port to override those on the portgroup.
|
|
1909
|
+
:param pulumi.Input[bool] shaping_override_allowed: Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
|
|
1801
1910
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_uplinks: List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
|
|
1802
1911
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tag IDs to apply to this object.
|
|
1803
1912
|
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid,
|
|
1804
1913
|
failover_explicit, or loadbalance_loadbased.
|
|
1805
|
-
:param pulumi.Input[bool] traffic_filter_override_allowed: Allow any
|
|
1806
|
-
this port group to be overridden on an individual port.
|
|
1914
|
+
:param pulumi.Input[bool] traffic_filter_override_allowed: Allow any filter policies set on the individual port to override those in the portgroup.
|
|
1807
1915
|
:param pulumi.Input[bool] tx_uplink: If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet
|
|
1808
1916
|
forwarded done by the switch.
|
|
1809
1917
|
:param pulumi.Input[str] type: The port group type. Can be one of `earlyBinding` (static
|
|
1810
1918
|
binding) or `ephemeral`. Default: `earlyBinding`.
|
|
1811
|
-
:param pulumi.Input[bool] uplink_teaming_override_allowed: Allow the
|
|
1812
|
-
[uplink teaming options][uplink-teaming-settings] on this port group to be
|
|
1813
|
-
overridden on an individual port.
|
|
1919
|
+
:param pulumi.Input[bool] uplink_teaming_override_allowed: Allow the uplink teaming policies on a port to override those on the portgroup.
|
|
1814
1920
|
:param pulumi.Input[int] vlan_id: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
1815
|
-
:param pulumi.Input[bool] vlan_override_allowed: Allow the
|
|
1816
|
-
|
|
1817
|
-
individual port.
|
|
1818
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DistributedPortGroupVlanRangeArgs']]]] vlan_ranges: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
1921
|
+
:param pulumi.Input[bool] vlan_override_allowed: Allow the VLAN configuration on a port to override those on the portgroup.
|
|
1922
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DistributedPortGroupVlanRangeArgs', 'DistributedPortGroupVlanRangeArgsDict']]]] vlan_ranges: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
1819
1923
|
"""
|
|
1820
1924
|
...
|
|
1821
1925
|
@overload
|
|
@@ -1824,7 +1928,146 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
1824
1928
|
args: DistributedPortGroupArgs,
|
|
1825
1929
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
1826
1930
|
"""
|
|
1827
|
-
|
|
1931
|
+
The `DistributedPortGroup` resource can be used to manage
|
|
1932
|
+
distributed port groups connected to vSphere Distributed Switches (VDS).
|
|
1933
|
+
A vSphere Distributed Switch can be managed by the
|
|
1934
|
+
`DistributedVirtualSwitch` resource.
|
|
1935
|
+
|
|
1936
|
+
Distributed port groups can be used as networks for virtual machines, allowing
|
|
1937
|
+
the virtual machines to use the networking supplied by a vSphere Distributed
|
|
1938
|
+
Switch, with a set of policies that apply to that individual network, if
|
|
1939
|
+
desired.
|
|
1940
|
+
|
|
1941
|
+
* For an overview on vSphere networking concepts, refer to the vSphere
|
|
1942
|
+
[product documentation][ref-vsphere-net-concepts].
|
|
1943
|
+
|
|
1944
|
+
* For more information on distributed port groups, refer to the vSphere
|
|
1945
|
+
[product documentation][ref-vsphere-dvportgroup].
|
|
1946
|
+
|
|
1947
|
+
[ref-vsphere-net-concepts]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-2B11DBB8-CB3C-4AFF-8885-EFEA0FC562F4.html
|
|
1948
|
+
[ref-vsphere-dvportgroup]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-69933F6E-2442-46CF-AA17-1196CB9A0A09.html
|
|
1949
|
+
|
|
1950
|
+
> **NOTE:** This resource requires vCenter and is not available on
|
|
1951
|
+
direct ESXi host connections.
|
|
1952
|
+
|
|
1953
|
+
## Example Usage
|
|
1954
|
+
|
|
1955
|
+
The configuration below builds on the example given in the
|
|
1956
|
+
`DistributedVirtualSwitch` resource by
|
|
1957
|
+
adding the `DistributedPortGroup` resource, attaching itself to the
|
|
1958
|
+
vSphere Distributed Switch and assigning VLAN ID 1000.
|
|
1959
|
+
|
|
1960
|
+
```python
|
|
1961
|
+
import pulumi
|
|
1962
|
+
import pulumi_vsphere as vsphere
|
|
1963
|
+
|
|
1964
|
+
config = pulumi.Config()
|
|
1965
|
+
hosts = config.get_object("hosts")
|
|
1966
|
+
if hosts is None:
|
|
1967
|
+
hosts = [
|
|
1968
|
+
"esxi-01.example.com",
|
|
1969
|
+
"esxi-02.example.com",
|
|
1970
|
+
"esxi-03.example.com",
|
|
1971
|
+
]
|
|
1972
|
+
network_interfaces = config.get_object("networkInterfaces")
|
|
1973
|
+
if network_interfaces is None:
|
|
1974
|
+
network_interfaces = [
|
|
1975
|
+
"vmnic0",
|
|
1976
|
+
"vmnic1",
|
|
1977
|
+
"vmnic2",
|
|
1978
|
+
"vmnic3",
|
|
1979
|
+
]
|
|
1980
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
1981
|
+
host = [vsphere.get_host(name=hosts[__index],
|
|
1982
|
+
datacenter_id=datacenter.id) for __index in range(len(hosts))]
|
|
1983
|
+
vds = vsphere.DistributedVirtualSwitch("vds",
|
|
1984
|
+
name="vds-01",
|
|
1985
|
+
datacenter_id=datacenter.id,
|
|
1986
|
+
uplinks=[
|
|
1987
|
+
"uplink1",
|
|
1988
|
+
"uplink2",
|
|
1989
|
+
"uplink3",
|
|
1990
|
+
"uplink4",
|
|
1991
|
+
],
|
|
1992
|
+
active_uplinks=[
|
|
1993
|
+
"uplink1",
|
|
1994
|
+
"uplink2",
|
|
1995
|
+
],
|
|
1996
|
+
standby_uplinks=[
|
|
1997
|
+
"uplink3",
|
|
1998
|
+
"uplink4",
|
|
1999
|
+
],
|
|
2000
|
+
hosts=[
|
|
2001
|
+
{
|
|
2002
|
+
"host_system_id": host[0].id,
|
|
2003
|
+
"devices": [network_interfaces],
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
"host_system_id": host[1].id,
|
|
2007
|
+
"devices": [network_interfaces],
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
"host_system_id": host[2].id,
|
|
2011
|
+
"devices": [network_interfaces],
|
|
2012
|
+
},
|
|
2013
|
+
])
|
|
2014
|
+
pg = vsphere.DistributedPortGroup("pg",
|
|
2015
|
+
name="pg-01",
|
|
2016
|
+
distributed_virtual_switch_uuid=vds.id,
|
|
2017
|
+
vlan_id=1000)
|
|
2018
|
+
```
|
|
2019
|
+
|
|
2020
|
+
### Overriding VDS policies
|
|
2021
|
+
|
|
2022
|
+
All of the default port policies available in the
|
|
2023
|
+
`DistributedVirtualSwitch` resource can be overridden on the port
|
|
2024
|
+
group level by specifying new settings for them.
|
|
2025
|
+
|
|
2026
|
+
As an example, we also take this example from the
|
|
2027
|
+
`DistributedVirtualSwitch` resource where we manually specify our
|
|
2028
|
+
uplink count and uplink order. While the vSphere Distributed Switch has a
|
|
2029
|
+
default policy of using the first uplink as an active uplink and the second
|
|
2030
|
+
one as a standby, the overridden port group policy means that both uplinks
|
|
2031
|
+
will be used as active uplinks in this specific port group.
|
|
2032
|
+
|
|
2033
|
+
```python
|
|
2034
|
+
import pulumi
|
|
2035
|
+
import pulumi_vsphere as vsphere
|
|
2036
|
+
|
|
2037
|
+
vds = vsphere.DistributedVirtualSwitch("vds",
|
|
2038
|
+
name="vds-01",
|
|
2039
|
+
datacenter_id=datacenter["id"],
|
|
2040
|
+
uplinks=[
|
|
2041
|
+
"uplink1",
|
|
2042
|
+
"uplink2",
|
|
2043
|
+
],
|
|
2044
|
+
active_uplinks=["uplink1"],
|
|
2045
|
+
standby_uplinks=["uplink2"])
|
|
2046
|
+
pg = vsphere.DistributedPortGroup("pg",
|
|
2047
|
+
name="pg-01",
|
|
2048
|
+
distributed_virtual_switch_uuid=vds.id,
|
|
2049
|
+
vlan_id=1000,
|
|
2050
|
+
active_uplinks=[
|
|
2051
|
+
"uplink1",
|
|
2052
|
+
"uplink2",
|
|
2053
|
+
],
|
|
2054
|
+
standby_uplinks=[])
|
|
2055
|
+
```
|
|
2056
|
+
|
|
2057
|
+
## Import
|
|
2058
|
+
|
|
2059
|
+
An existing port group can be imported into this resource using
|
|
2060
|
+
|
|
2061
|
+
the managed object id of the port group, via the following command:
|
|
2062
|
+
|
|
2063
|
+
```sh
|
|
2064
|
+
$ pulumi import vsphere:index/distributedPortGroup:DistributedPortGroup pg /dc-01/network/pg-01
|
|
2065
|
+
```
|
|
2066
|
+
|
|
2067
|
+
The above would import the port group named `pg-01` that is located in the `dc-01`
|
|
2068
|
+
|
|
2069
|
+
datacenter.
|
|
2070
|
+
|
|
1828
2071
|
:param str resource_name: The name of the resource.
|
|
1829
2072
|
:param DistributedPortGroupArgs args: The arguments to use to populate this resource's properties.
|
|
1830
2073
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -1885,7 +2128,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
1885
2128
|
uplink_teaming_override_allowed: Optional[pulumi.Input[bool]] = None,
|
|
1886
2129
|
vlan_id: Optional[pulumi.Input[int]] = None,
|
|
1887
2130
|
vlan_override_allowed: Optional[pulumi.Input[bool]] = None,
|
|
1888
|
-
vlan_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
2131
|
+
vlan_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DistributedPortGroupVlanRangeArgs', 'DistributedPortGroupVlanRangeArgsDict']]]]] = None,
|
|
1889
2132
|
__props__=None):
|
|
1890
2133
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
1891
2134
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -2002,7 +2245,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2002
2245
|
uplink_teaming_override_allowed: Optional[pulumi.Input[bool]] = None,
|
|
2003
2246
|
vlan_id: Optional[pulumi.Input[int]] = None,
|
|
2004
2247
|
vlan_override_allowed: Optional[pulumi.Input[bool]] = None,
|
|
2005
|
-
vlan_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
2248
|
+
vlan_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DistributedPortGroupVlanRangeArgs', 'DistributedPortGroupVlanRangeArgsDict']]]]] = None) -> 'DistributedPortGroup':
|
|
2006
2249
|
"""
|
|
2007
2250
|
Get an existing DistributedPortGroup resource's state with the given name, id, and optional extra
|
|
2008
2251
|
properties used to qualify the lookup.
|
|
@@ -2022,13 +2265,19 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2022
2265
|
may lead to errors when the port count grows past the amount specified. If you
|
|
2023
2266
|
specify `number_of_ports`, you may wish to set `auto_expand` to `false`.
|
|
2024
2267
|
:param pulumi.Input[bool] block_all_ports: Indicates whether to block all ports by default.
|
|
2025
|
-
:param pulumi.Input[bool] block_override_allowed: Allow the port
|
|
2026
|
-
policy to be overridden on an individual port.
|
|
2268
|
+
:param pulumi.Input[bool] block_override_allowed: Allow the blocked setting of an individual port to override the setting in the portgroup.
|
|
2027
2269
|
:param pulumi.Input[bool] check_beacon: Enable beacon probing on the ports this policy applies to.
|
|
2028
2270
|
:param pulumi.Input[str] config_version: The current version of the port group configuration,
|
|
2029
2271
|
incremented by subsequent updates to the port group.
|
|
2030
2272
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
2273
|
+
<<<<<<< HEAD
|
|
2274
|
+
value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
2275
|
+
for a reference on how to set values for custom attributes.
|
|
2276
|
+
|
|
2277
|
+
[docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
2278
|
+
=======
|
|
2031
2279
|
value string to set for port group.
|
|
2280
|
+
>>>>>>> 69c6e040 (fork)
|
|
2032
2281
|
|
|
2033
2282
|
> **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
2034
2283
|
connections and require vCenter Server.
|
|
@@ -2048,53 +2297,39 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2048
2297
|
:param pulumi.Input[str] key: The generated UUID of the port group.
|
|
2049
2298
|
:param pulumi.Input[bool] lacp_enabled: Whether or not to enable LACP on all uplink ports.
|
|
2050
2299
|
:param pulumi.Input[str] lacp_mode: The uplink LACP mode to use. Can be one of active or passive.
|
|
2051
|
-
:param pulumi.Input[bool] live_port_moving_allowed: Allow a port in
|
|
2052
|
-
moved to another port group while it is connected.
|
|
2300
|
+
:param pulumi.Input[bool] live_port_moving_allowed: Allow a live port to be moved in and out of the portgroup.
|
|
2053
2301
|
:param pulumi.Input[str] name: The name of the port group.
|
|
2054
2302
|
:param pulumi.Input[bool] netflow_enabled: Indicates whether to enable netflow on all ports.
|
|
2055
|
-
:param pulumi.Input[bool] netflow_override_allowed: Allow the
|
|
2056
|
-
[Netflow policy][netflow-policy] on this port group to be overridden on an
|
|
2057
|
-
individual port.
|
|
2303
|
+
:param pulumi.Input[bool] netflow_override_allowed: Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
|
|
2058
2304
|
:param pulumi.Input[str] network_resource_pool_key: The key of a network resource pool
|
|
2059
2305
|
to associate with this port group. The default is `-1`, which implies no
|
|
2060
2306
|
association.
|
|
2061
|
-
:param pulumi.Input[bool] network_resource_pool_override_allowed: Allow the network
|
|
2062
|
-
resource pool set on this port group to be overridden on an individual port.
|
|
2307
|
+
:param pulumi.Input[bool] network_resource_pool_override_allowed: Allow the network resource pool of an individual port to override the setting in the portgroup.
|
|
2063
2308
|
:param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
2064
2309
|
:param pulumi.Input[int] number_of_ports: The number of ports available on this port
|
|
2065
2310
|
group. Cannot be decreased below the amount of used ports on the port group.
|
|
2066
|
-
:param pulumi.Input[bool] port_config_reset_at_disconnect: Reset
|
|
2067
|
-
settings defined on this port group policy when the port disconnects.
|
|
2311
|
+
:param pulumi.Input[bool] port_config_reset_at_disconnect: Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
|
|
2068
2312
|
:param pulumi.Input[str] port_name_format: An optional formatting policy for naming of
|
|
2069
2313
|
the ports in this port group. See the `portNameFormat` attribute listed
|
|
2070
2314
|
[here][ext-vsphere-portname-format] for details on the format syntax.
|
|
2071
2315
|
|
|
2072
|
-
[ext-vsphere-portname-format]: https://
|
|
2316
|
+
[ext-vsphere-portname-format]: https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/DVPortgroupConfigInfo/
|
|
2073
2317
|
:param pulumi.Input[int] port_private_secondary_vlan_id: The secondary VLAN ID for this port.
|
|
2074
|
-
:param pulumi.Input[bool] security_policy_override_allowed: Allow the
|
|
2075
|
-
|
|
2076
|
-
policy to be overridden on an individual port.
|
|
2077
|
-
:param pulumi.Input[bool] shaping_override_allowed: Allow the
|
|
2078
|
-
[traffic shaping options][traffic-shaping-settings] on this port group policy
|
|
2079
|
-
to be overridden on an individual port.
|
|
2318
|
+
:param pulumi.Input[bool] security_policy_override_allowed: Allow security policy settings on a port to override those on the portgroup.
|
|
2319
|
+
:param pulumi.Input[bool] shaping_override_allowed: Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
|
|
2080
2320
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_uplinks: List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
|
|
2081
2321
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tag IDs to apply to this object.
|
|
2082
2322
|
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid,
|
|
2083
2323
|
failover_explicit, or loadbalance_loadbased.
|
|
2084
|
-
:param pulumi.Input[bool] traffic_filter_override_allowed: Allow any
|
|
2085
|
-
this port group to be overridden on an individual port.
|
|
2324
|
+
:param pulumi.Input[bool] traffic_filter_override_allowed: Allow any filter policies set on the individual port to override those in the portgroup.
|
|
2086
2325
|
:param pulumi.Input[bool] tx_uplink: If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet
|
|
2087
2326
|
forwarded done by the switch.
|
|
2088
2327
|
:param pulumi.Input[str] type: The port group type. Can be one of `earlyBinding` (static
|
|
2089
2328
|
binding) or `ephemeral`. Default: `earlyBinding`.
|
|
2090
|
-
:param pulumi.Input[bool] uplink_teaming_override_allowed: Allow the
|
|
2091
|
-
[uplink teaming options][uplink-teaming-settings] on this port group to be
|
|
2092
|
-
overridden on an individual port.
|
|
2329
|
+
:param pulumi.Input[bool] uplink_teaming_override_allowed: Allow the uplink teaming policies on a port to override those on the portgroup.
|
|
2093
2330
|
:param pulumi.Input[int] vlan_id: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
2094
|
-
:param pulumi.Input[bool] vlan_override_allowed: Allow the
|
|
2095
|
-
|
|
2096
|
-
individual port.
|
|
2097
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DistributedPortGroupVlanRangeArgs']]]] vlan_ranges: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
2331
|
+
:param pulumi.Input[bool] vlan_override_allowed: Allow the VLAN configuration on a port to override those on the portgroup.
|
|
2332
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DistributedPortGroupVlanRangeArgs', 'DistributedPortGroupVlanRangeArgsDict']]]] vlan_ranges: The VLAN ID for single VLAN mode. 0 denotes no VLAN.
|
|
2098
2333
|
"""
|
|
2099
2334
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
2100
2335
|
|
|
@@ -2208,8 +2443,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2208
2443
|
@pulumi.getter(name="blockOverrideAllowed")
|
|
2209
2444
|
def block_override_allowed(self) -> pulumi.Output[Optional[bool]]:
|
|
2210
2445
|
"""
|
|
2211
|
-
Allow the port
|
|
2212
|
-
policy to be overridden on an individual port.
|
|
2446
|
+
Allow the blocked setting of an individual port to override the setting in the portgroup.
|
|
2213
2447
|
"""
|
|
2214
2448
|
return pulumi.get(self, "block_override_allowed")
|
|
2215
2449
|
|
|
@@ -2235,7 +2469,14 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2235
2469
|
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
2236
2470
|
"""
|
|
2237
2471
|
Map of custom attribute ids to attribute
|
|
2472
|
+
<<<<<<< HEAD
|
|
2473
|
+
value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
2474
|
+
for a reference on how to set values for custom attributes.
|
|
2475
|
+
|
|
2476
|
+
[docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
2477
|
+
=======
|
|
2238
2478
|
value string to set for port group.
|
|
2479
|
+
>>>>>>> 69c6e040 (fork)
|
|
2239
2480
|
|
|
2240
2481
|
> **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
2241
2482
|
connections and require vCenter Server.
|
|
@@ -2367,8 +2608,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2367
2608
|
@pulumi.getter(name="livePortMovingAllowed")
|
|
2368
2609
|
def live_port_moving_allowed(self) -> pulumi.Output[Optional[bool]]:
|
|
2369
2610
|
"""
|
|
2370
|
-
Allow a port in
|
|
2371
|
-
moved to another port group while it is connected.
|
|
2611
|
+
Allow a live port to be moved in and out of the portgroup.
|
|
2372
2612
|
"""
|
|
2373
2613
|
return pulumi.get(self, "live_port_moving_allowed")
|
|
2374
2614
|
|
|
@@ -2392,9 +2632,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2392
2632
|
@pulumi.getter(name="netflowOverrideAllowed")
|
|
2393
2633
|
def netflow_override_allowed(self) -> pulumi.Output[Optional[bool]]:
|
|
2394
2634
|
"""
|
|
2395
|
-
Allow the
|
|
2396
|
-
[Netflow policy][netflow-policy] on this port group to be overridden on an
|
|
2397
|
-
individual port.
|
|
2635
|
+
Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
|
|
2398
2636
|
"""
|
|
2399
2637
|
return pulumi.get(self, "netflow_override_allowed")
|
|
2400
2638
|
|
|
@@ -2412,8 +2650,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2412
2650
|
@pulumi.getter(name="networkResourcePoolOverrideAllowed")
|
|
2413
2651
|
def network_resource_pool_override_allowed(self) -> pulumi.Output[Optional[bool]]:
|
|
2414
2652
|
"""
|
|
2415
|
-
Allow the network
|
|
2416
|
-
resource pool set on this port group to be overridden on an individual port.
|
|
2653
|
+
Allow the network resource pool of an individual port to override the setting in the portgroup.
|
|
2417
2654
|
"""
|
|
2418
2655
|
return pulumi.get(self, "network_resource_pool_override_allowed")
|
|
2419
2656
|
|
|
@@ -2438,8 +2675,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2438
2675
|
@pulumi.getter(name="portConfigResetAtDisconnect")
|
|
2439
2676
|
def port_config_reset_at_disconnect(self) -> pulumi.Output[Optional[bool]]:
|
|
2440
2677
|
"""
|
|
2441
|
-
Reset
|
|
2442
|
-
settings defined on this port group policy when the port disconnects.
|
|
2678
|
+
Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
|
|
2443
2679
|
"""
|
|
2444
2680
|
return pulumi.get(self, "port_config_reset_at_disconnect")
|
|
2445
2681
|
|
|
@@ -2451,7 +2687,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2451
2687
|
the ports in this port group. See the `portNameFormat` attribute listed
|
|
2452
2688
|
[here][ext-vsphere-portname-format] for details on the format syntax.
|
|
2453
2689
|
|
|
2454
|
-
[ext-vsphere-portname-format]: https://
|
|
2690
|
+
[ext-vsphere-portname-format]: https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/DVPortgroupConfigInfo/
|
|
2455
2691
|
"""
|
|
2456
2692
|
return pulumi.get(self, "port_name_format")
|
|
2457
2693
|
|
|
@@ -2467,9 +2703,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2467
2703
|
@pulumi.getter(name="securityPolicyOverrideAllowed")
|
|
2468
2704
|
def security_policy_override_allowed(self) -> pulumi.Output[Optional[bool]]:
|
|
2469
2705
|
"""
|
|
2470
|
-
Allow the
|
|
2471
|
-
[security policy settings][sec-policy-settings] defined in this port group
|
|
2472
|
-
policy to be overridden on an individual port.
|
|
2706
|
+
Allow security policy settings on a port to override those on the portgroup.
|
|
2473
2707
|
"""
|
|
2474
2708
|
return pulumi.get(self, "security_policy_override_allowed")
|
|
2475
2709
|
|
|
@@ -2477,9 +2711,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2477
2711
|
@pulumi.getter(name="shapingOverrideAllowed")
|
|
2478
2712
|
def shaping_override_allowed(self) -> pulumi.Output[Optional[bool]]:
|
|
2479
2713
|
"""
|
|
2480
|
-
Allow the
|
|
2481
|
-
[traffic shaping options][traffic-shaping-settings] on this port group policy
|
|
2482
|
-
to be overridden on an individual port.
|
|
2714
|
+
Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
|
|
2483
2715
|
"""
|
|
2484
2716
|
return pulumi.get(self, "shaping_override_allowed")
|
|
2485
2717
|
|
|
@@ -2512,8 +2744,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2512
2744
|
@pulumi.getter(name="trafficFilterOverrideAllowed")
|
|
2513
2745
|
def traffic_filter_override_allowed(self) -> pulumi.Output[Optional[bool]]:
|
|
2514
2746
|
"""
|
|
2515
|
-
Allow any
|
|
2516
|
-
this port group to be overridden on an individual port.
|
|
2747
|
+
Allow any filter policies set on the individual port to override those in the portgroup.
|
|
2517
2748
|
"""
|
|
2518
2749
|
return pulumi.get(self, "traffic_filter_override_allowed")
|
|
2519
2750
|
|
|
@@ -2539,9 +2770,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2539
2770
|
@pulumi.getter(name="uplinkTeamingOverrideAllowed")
|
|
2540
2771
|
def uplink_teaming_override_allowed(self) -> pulumi.Output[Optional[bool]]:
|
|
2541
2772
|
"""
|
|
2542
|
-
Allow the
|
|
2543
|
-
[uplink teaming options][uplink-teaming-settings] on this port group to be
|
|
2544
|
-
overridden on an individual port.
|
|
2773
|
+
Allow the uplink teaming policies on a port to override those on the portgroup.
|
|
2545
2774
|
"""
|
|
2546
2775
|
return pulumi.get(self, "uplink_teaming_override_allowed")
|
|
2547
2776
|
|
|
@@ -2557,9 +2786,7 @@ class DistributedPortGroup(pulumi.CustomResource):
|
|
|
2557
2786
|
@pulumi.getter(name="vlanOverrideAllowed")
|
|
2558
2787
|
def vlan_override_allowed(self) -> pulumi.Output[Optional[bool]]:
|
|
2559
2788
|
"""
|
|
2560
|
-
Allow the
|
|
2561
|
-
[VLAN settings][vlan-settings] on this port group to be overridden on an
|
|
2562
|
-
individual port.
|
|
2789
|
+
Allow the VLAN configuration on a port to override those on the portgroup.
|
|
2563
2790
|
"""
|
|
2564
2791
|
return pulumi.get(self, "vlan_override_allowed")
|
|
2565
2792
|
|