vsphere/host_virtual_switch_structure.go
func schemaHostVirtualSwitchSpec() map[string]*schema.Schema {
	s := map[string]*schema.Schema{
		// HostVirtualSwitchSpec
		"mtu": {
			Type:         schema.TypeInt,
			Optional:     true,
			Description:  "The maximum transmission unit (MTU) of the virtual switch in bytes.",
			Default:      1500,
			ValidateFunc: validation.IntBetween(1, 9000),
		},
		"number_of_ports": {
			Type:         schema.TypeInt,
			Optional:     true,
			Description:  "The number of ports that this virtual switch is configured to use.",
			Default:      128,
			ValidateFunc: validation.IntBetween(0, 1024),
		},
	}
	structure.MergeSchema(s, schemaHostVirtualSwitchBondBridge())
	structure.MergeSchema(s, schemaHostNetworkPolicy())
	return s
}
func schemaHostVirtualSwitchSpec() map[string]*schema.Schema {
	s := map[string]*schema.Schema{
		// HostVirtualSwitchSpec
		"mtu": {
			Type:         schema.TypeInt,
			Optional:     true,
			Description:  "The maximum transmission unit (MTU) of the virtual switch in bytes.",
			Default:      1500,
			ValidateFunc: validation.IntBetween(1, 9000),
		},
		"number_of_ports": {
			Type:         schema.TypeInt,
			Optional:     true,
			Description:  "The number of ports that this virtual switch is configured to use.",
			Default:      128,
			ValidateFunc: validation.IntBetween(0, 1024),
		},
	}
	structure.MergeSchema(s, schemaHostVirtualSwitchBondBridge())
	structure.MergeSchema(s, schemaHostNetworkPolicy())
	return s
}
// schemaHostVirtualSwitchSpec returns schema items for resources that need to
// work with a HostVirtualSwitchSpec, such as virtual switches.