vsphere.HostVirtualSwitch
Explore with Pulumi AI
Create HostVirtualSwitch Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HostVirtualSwitch(name: string, args: HostVirtualSwitchArgs, opts?: CustomResourceOptions);
@overload
def HostVirtualSwitch(resource_name: str,
args: HostVirtualSwitchArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HostVirtualSwitch(resource_name: str,
opts: Optional[ResourceOptions] = None,
host_system_id: Optional[str] = None,
network_adapters: Optional[Sequence[str]] = None,
active_nics: Optional[Sequence[str]] = None,
mtu: Optional[int] = None,
allow_forged_transmits: Optional[bool] = None,
check_beacon: Optional[bool] = None,
failback: Optional[bool] = None,
allow_promiscuous: Optional[bool] = None,
link_discovery_operation: Optional[str] = None,
link_discovery_protocol: Optional[str] = None,
allow_mac_changes: Optional[bool] = None,
name: Optional[str] = None,
beacon_interval: Optional[int] = None,
notify_switches: Optional[bool] = None,
number_of_ports: Optional[int] = None,
shaping_average_bandwidth: Optional[int] = None,
shaping_burst_size: Optional[int] = None,
shaping_enabled: Optional[bool] = None,
shaping_peak_bandwidth: Optional[int] = None,
standby_nics: Optional[Sequence[str]] = None,
teaming_policy: Optional[str] = None)
func NewHostVirtualSwitch(ctx *Context, name string, args HostVirtualSwitchArgs, opts ...ResourceOption) (*HostVirtualSwitch, error)
public HostVirtualSwitch(string name, HostVirtualSwitchArgs args, CustomResourceOptions? opts = null)
public HostVirtualSwitch(String name, HostVirtualSwitchArgs args)
public HostVirtualSwitch(String name, HostVirtualSwitchArgs args, CustomResourceOptions options)
type: vsphere:HostVirtualSwitch
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HostVirtualSwitchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HostVirtualSwitchArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HostVirtualSwitchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostVirtualSwitchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HostVirtualSwitchArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hostVirtualSwitchResource = new VSphere.HostVirtualSwitch("hostVirtualSwitchResource", new()
{
HostSystemId = "string",
NetworkAdapters = new[]
{
"string",
},
ActiveNics = new[]
{
"string",
},
Mtu = 0,
AllowForgedTransmits = false,
CheckBeacon = false,
Failback = false,
AllowPromiscuous = false,
LinkDiscoveryOperation = "string",
LinkDiscoveryProtocol = "string",
AllowMacChanges = false,
Name = "string",
BeaconInterval = 0,
NotifySwitches = false,
NumberOfPorts = 0,
ShapingAverageBandwidth = 0,
ShapingBurstSize = 0,
ShapingEnabled = false,
ShapingPeakBandwidth = 0,
StandbyNics = new[]
{
"string",
},
TeamingPolicy = "string",
});
example, err := vsphere.NewHostVirtualSwitch(ctx, "hostVirtualSwitchResource", &vsphere.HostVirtualSwitchArgs{
HostSystemId: pulumi.String("string"),
NetworkAdapters: pulumi.StringArray{
pulumi.String("string"),
},
ActiveNics: pulumi.StringArray{
pulumi.String("string"),
},
Mtu: pulumi.Int(0),
AllowForgedTransmits: pulumi.Bool(false),
CheckBeacon: pulumi.Bool(false),
Failback: pulumi.Bool(false),
AllowPromiscuous: pulumi.Bool(false),
LinkDiscoveryOperation: pulumi.String("string"),
LinkDiscoveryProtocol: pulumi.String("string"),
AllowMacChanges: pulumi.Bool(false),
Name: pulumi.String("string"),
BeaconInterval: pulumi.Int(0),
NotifySwitches: pulumi.Bool(false),
NumberOfPorts: pulumi.Int(0),
ShapingAverageBandwidth: pulumi.Int(0),
ShapingBurstSize: pulumi.Int(0),
ShapingEnabled: pulumi.Bool(false),
ShapingPeakBandwidth: pulumi.Int(0),
StandbyNics: pulumi.StringArray{
pulumi.String("string"),
},
TeamingPolicy: pulumi.String("string"),
})
var hostVirtualSwitchResource = new HostVirtualSwitch("hostVirtualSwitchResource", HostVirtualSwitchArgs.builder()
.hostSystemId("string")
.networkAdapters("string")
.activeNics("string")
.mtu(0)
.allowForgedTransmits(false)
.checkBeacon(false)
.failback(false)
.allowPromiscuous(false)
.linkDiscoveryOperation("string")
.linkDiscoveryProtocol("string")
.allowMacChanges(false)
.name("string")
.beaconInterval(0)
.notifySwitches(false)
.numberOfPorts(0)
.shapingAverageBandwidth(0)
.shapingBurstSize(0)
.shapingEnabled(false)
.shapingPeakBandwidth(0)
.standbyNics("string")
.teamingPolicy("string")
.build());
host_virtual_switch_resource = vsphere.HostVirtualSwitch("hostVirtualSwitchResource",
host_system_id="string",
network_adapters=["string"],
active_nics=["string"],
mtu=0,
allow_forged_transmits=False,
check_beacon=False,
failback=False,
allow_promiscuous=False,
link_discovery_operation="string",
link_discovery_protocol="string",
allow_mac_changes=False,
name="string",
beacon_interval=0,
notify_switches=False,
number_of_ports=0,
shaping_average_bandwidth=0,
shaping_burst_size=0,
shaping_enabled=False,
shaping_peak_bandwidth=0,
standby_nics=["string"],
teaming_policy="string")
const hostVirtualSwitchResource = new vsphere.HostVirtualSwitch("hostVirtualSwitchResource", {
hostSystemId: "string",
networkAdapters: ["string"],
activeNics: ["string"],
mtu: 0,
allowForgedTransmits: false,
checkBeacon: false,
failback: false,
allowPromiscuous: false,
linkDiscoveryOperation: "string",
linkDiscoveryProtocol: "string",
allowMacChanges: false,
name: "string",
beaconInterval: 0,
notifySwitches: false,
numberOfPorts: 0,
shapingAverageBandwidth: 0,
shapingBurstSize: 0,
shapingEnabled: false,
shapingPeakBandwidth: 0,
standbyNics: ["string"],
teamingPolicy: "string",
});
type: vsphere:HostVirtualSwitch
properties:
activeNics:
- string
allowForgedTransmits: false
allowMacChanges: false
allowPromiscuous: false
beaconInterval: 0
checkBeacon: false
failback: false
hostSystemId: string
linkDiscoveryOperation: string
linkDiscoveryProtocol: string
mtu: 0
name: string
networkAdapters:
- string
notifySwitches: false
numberOfPorts: 0
shapingAverageBandwidth: 0
shapingBurstSize: 0
shapingEnabled: false
shapingPeakBandwidth: 0
standbyNics:
- string
teamingPolicy: string
HostVirtualSwitch Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The HostVirtualSwitch resource accepts the following input properties:
- Active
Nics List<string> - List of active network adapters used for load balancing.
- Host
System stringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- Network
Adapters List<string> - The list of network adapters to bind to this virtual switch.
- Allow
Forged boolTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Beacon
Interval int - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- Check
Beacon bool - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- Failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Link
Discovery stringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- Link
Discovery stringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- Mtu int
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - Name string
- The name of the virtual switch. Forces a new resource if changed.
- Notify
Switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Number
Of intPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- Shaping
Average intBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- Shaping
Burst intSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- Shaping
Enabled bool - Enable traffic shaping on this virtual switch or port group.
- Shaping
Peak intBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- Standby
Nics List<string> - List of standby network adapters used for failover.
- Teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- Active
Nics []string - List of active network adapters used for load balancing.
- Host
System stringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- Network
Adapters []string - The list of network adapters to bind to this virtual switch.
- Allow
Forged boolTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Beacon
Interval int - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- Check
Beacon bool - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- Failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Link
Discovery stringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- Link
Discovery stringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- Mtu int
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - Name string
- The name of the virtual switch. Forces a new resource if changed.
- Notify
Switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Number
Of intPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- Shaping
Average intBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- Shaping
Burst intSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- Shaping
Enabled bool - Enable traffic shaping on this virtual switch or port group.
- Shaping
Peak intBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- Standby
Nics []string - List of standby network adapters used for failover.
- Teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- active
Nics List<String> - List of active network adapters used for load balancing.
- host
System StringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- network
Adapters List<String> - The list of network adapters to bind to this virtual switch.
- allow
Forged BooleanTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac BooleanChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous Boolean - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- beacon
Interval Integer - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- check
Beacon Boolean - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback Boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- link
Discovery StringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- link
Discovery StringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- mtu Integer
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - name String
- The name of the virtual switch. Forces a new resource if changed.
- notify
Switches Boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of IntegerPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- shaping
Average IntegerBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- shaping
Burst IntegerSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping
Enabled Boolean - Enable traffic shaping on this virtual switch or port group.
- shaping
Peak IntegerBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby
Nics List<String> - List of standby network adapters used for failover.
- teaming
Policy String - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- active
Nics string[] - List of active network adapters used for load balancing.
- host
System stringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- network
Adapters string[] - The list of network adapters to bind to this virtual switch.
- allow
Forged booleanTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac booleanChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous boolean - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- beacon
Interval number - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- check
Beacon boolean - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- link
Discovery stringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- link
Discovery stringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- mtu number
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - name string
- The name of the virtual switch. Forces a new resource if changed.
- notify
Switches boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of numberPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- shaping
Average numberBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- shaping
Burst numberSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping
Enabled boolean - Enable traffic shaping on this virtual switch or port group.
- shaping
Peak numberBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby
Nics string[] - List of standby network adapters used for failover.
- teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- active_
nics Sequence[str] - List of active network adapters used for load balancing.
- host_
system_ strid - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- network_
adapters Sequence[str] - The list of network adapters to bind to this virtual switch.
- allow_
forged_ booltransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow_
mac_ boolchanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- allow_
promiscuous bool - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- beacon_
interval int - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- check_
beacon bool - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- link_
discovery_ stroperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- link_
discovery_ strprotocol - The discovery protocol type. Valid values are cdp and lldp.
- mtu int
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - name str
- The name of the virtual switch. Forces a new resource if changed.
- notify_
switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number_
of_ intports The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- shaping_
average_ intbandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- shaping_
burst_ intsize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping_
enabled bool - Enable traffic shaping on this virtual switch or port group.
- shaping_
peak_ intbandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby_
nics Sequence[str] - List of standby network adapters used for failover.
- teaming_
policy str - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- active
Nics List<String> - List of active network adapters used for load balancing.
- host
System StringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- network
Adapters List<String> - The list of network adapters to bind to this virtual switch.
- allow
Forged BooleanTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac BooleanChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous Boolean - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- beacon
Interval Number - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- check
Beacon Boolean - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback Boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- link
Discovery StringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- link
Discovery StringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- mtu Number
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - name String
- The name of the virtual switch. Forces a new resource if changed.
- notify
Switches Boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of NumberPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- shaping
Average NumberBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- shaping
Burst NumberSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping
Enabled Boolean - Enable traffic shaping on this virtual switch or port group.
- shaping
Peak NumberBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby
Nics List<String> - List of standby network adapters used for failover.
- teaming
Policy String - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
Outputs
All input properties are implicitly available as output properties. Additionally, the HostVirtualSwitch resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing HostVirtualSwitch Resource
Get an existing HostVirtualSwitch resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HostVirtualSwitchState, opts?: CustomResourceOptions): HostVirtualSwitch
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active_nics: Optional[Sequence[str]] = None,
allow_forged_transmits: Optional[bool] = None,
allow_mac_changes: Optional[bool] = None,
allow_promiscuous: Optional[bool] = None,
beacon_interval: Optional[int] = None,
check_beacon: Optional[bool] = None,
failback: Optional[bool] = None,
host_system_id: Optional[str] = None,
link_discovery_operation: Optional[str] = None,
link_discovery_protocol: Optional[str] = None,
mtu: Optional[int] = None,
name: Optional[str] = None,
network_adapters: Optional[Sequence[str]] = None,
notify_switches: Optional[bool] = None,
number_of_ports: Optional[int] = None,
shaping_average_bandwidth: Optional[int] = None,
shaping_burst_size: Optional[int] = None,
shaping_enabled: Optional[bool] = None,
shaping_peak_bandwidth: Optional[int] = None,
standby_nics: Optional[Sequence[str]] = None,
teaming_policy: Optional[str] = None) -> HostVirtualSwitch
func GetHostVirtualSwitch(ctx *Context, name string, id IDInput, state *HostVirtualSwitchState, opts ...ResourceOption) (*HostVirtualSwitch, error)
public static HostVirtualSwitch Get(string name, Input<string> id, HostVirtualSwitchState? state, CustomResourceOptions? opts = null)
public static HostVirtualSwitch get(String name, Output<String> id, HostVirtualSwitchState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active
Nics List<string> - List of active network adapters used for load balancing.
- Allow
Forged boolTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Beacon
Interval int - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- Check
Beacon bool - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- Failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Host
System stringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- Link
Discovery stringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- Link
Discovery stringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- Mtu int
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - Name string
- The name of the virtual switch. Forces a new resource if changed.
- Network
Adapters List<string> - The list of network adapters to bind to this virtual switch.
- Notify
Switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Number
Of intPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- Shaping
Average intBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- Shaping
Burst intSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- Shaping
Enabled bool - Enable traffic shaping on this virtual switch or port group.
- Shaping
Peak intBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- Standby
Nics List<string> - List of standby network adapters used for failover.
- Teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- Active
Nics []string - List of active network adapters used for load balancing.
- Allow
Forged boolTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Beacon
Interval int - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- Check
Beacon bool - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- Failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Host
System stringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- Link
Discovery stringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- Link
Discovery stringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- Mtu int
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - Name string
- The name of the virtual switch. Forces a new resource if changed.
- Network
Adapters []string - The list of network adapters to bind to this virtual switch.
- Notify
Switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Number
Of intPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- Shaping
Average intBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- Shaping
Burst intSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- Shaping
Enabled bool - Enable traffic shaping on this virtual switch or port group.
- Shaping
Peak intBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- Standby
Nics []string - List of standby network adapters used for failover.
- Teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- active
Nics List<String> - List of active network adapters used for load balancing.
- allow
Forged BooleanTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac BooleanChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous Boolean - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- beacon
Interval Integer - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- check
Beacon Boolean - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback Boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- host
System StringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- link
Discovery StringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- link
Discovery StringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- mtu Integer
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - name String
- The name of the virtual switch. Forces a new resource if changed.
- network
Adapters List<String> - The list of network adapters to bind to this virtual switch.
- notify
Switches Boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of IntegerPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- shaping
Average IntegerBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- shaping
Burst IntegerSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping
Enabled Boolean - Enable traffic shaping on this virtual switch or port group.
- shaping
Peak IntegerBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby
Nics List<String> - List of standby network adapters used for failover.
- teaming
Policy String - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- active
Nics string[] - List of active network adapters used for load balancing.
- allow
Forged booleanTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac booleanChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous boolean - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- beacon
Interval number - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- check
Beacon boolean - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- host
System stringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- link
Discovery stringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- link
Discovery stringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- mtu number
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - name string
- The name of the virtual switch. Forces a new resource if changed.
- network
Adapters string[] - The list of network adapters to bind to this virtual switch.
- notify
Switches boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of numberPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- shaping
Average numberBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- shaping
Burst numberSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping
Enabled boolean - Enable traffic shaping on this virtual switch or port group.
- shaping
Peak numberBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby
Nics string[] - List of standby network adapters used for failover.
- teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- active_
nics Sequence[str] - List of active network adapters used for load balancing.
- allow_
forged_ booltransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow_
mac_ boolchanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- allow_
promiscuous bool - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- beacon_
interval int - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- check_
beacon bool - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- host_
system_ strid - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- link_
discovery_ stroperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- link_
discovery_ strprotocol - The discovery protocol type. Valid values are cdp and lldp.
- mtu int
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - name str
- The name of the virtual switch. Forces a new resource if changed.
- network_
adapters Sequence[str] - The list of network adapters to bind to this virtual switch.
- notify_
switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number_
of_ intports The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- shaping_
average_ intbandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- shaping_
burst_ intsize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping_
enabled bool - Enable traffic shaping on this virtual switch or port group.
- shaping_
peak_ intbandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby_
nics Sequence[str] - List of standby network adapters used for failover.
- teaming_
policy str - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- active
Nics List<String> - List of active network adapters used for load balancing.
- allow
Forged BooleanTransmits - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac BooleanChanges - Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous Boolean - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- beacon
Interval Number - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
- check
Beacon Boolean - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback Boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- host
System StringId - The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
- link
Discovery StringOperation - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
- link
Discovery StringProtocol - The discovery protocol type. Valid values are cdp and lldp.
- mtu Number
- The maximum transmission unit (MTU) for the virtual
switch. Default:
1500
. - name String
- The name of the virtual switch. Forces a new resource if changed.
- network
Adapters List<String> - The list of network adapters to bind to this virtual switch.
- notify
Switches Boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of NumberPorts The number of ports to create with this virtual switch. Default:
128
.NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.
- shaping
Average NumberBandwidth - The average bandwidth in bits per second if traffic shaping is enabled.
- shaping
Burst NumberSize - The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping
Enabled Boolean - Enable traffic shaping on this virtual switch or port group.
- shaping
Peak NumberBandwidth - The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby
Nics List<String> - List of standby network adapters used for failover.
- teaming
Policy String - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.