vsphere/distributed_virtual_switch_structure.go
func flattenVMwareIpfixConfig(d *schema.ResourceData, obj *types.VMwareIpfixConfig) error {
	d.Set("netflow_active_flow_timeout", obj.ActiveFlowTimeout)
	d.Set("netflow_collector_ip_address", obj.CollectorIpAddress)
	d.Set("netflow_collector_port", obj.CollectorPort)
	d.Set("netflow_idle_flow_timeout", obj.IdleFlowTimeout)
	d.Set("netflow_internal_flows_only", obj.InternalFlowsOnly)
	d.Set("netflow_observation_domain_id", obj.ObservationDomainId)
	d.Set("netflow_sampling_rate", obj.SamplingRate)
	return nil
}
func flattenVMwareIpfixConfig(d *schema.ResourceData, obj *types.VMwareIpfixConfig) error {
	d.Set("netflow_active_flow_timeout", obj.ActiveFlowTimeout)
	d.Set("netflow_collector_ip_address", obj.CollectorIpAddress)
	d.Set("netflow_collector_port", obj.CollectorPort)
	d.Set("netflow_idle_flow_timeout", obj.IdleFlowTimeout)
	d.Set("netflow_internal_flows_only", obj.InternalFlowsOnly)
	d.Set("netflow_observation_domain_id", obj.ObservationDomainId)
	d.Set("netflow_sampling_rate", obj.SamplingRate)
	return nil
}
// flattenVMwareIpfixConfig reads various fields from a
// VMwareIpfixConfig into the passed in ResourceData.