vsphere/host_network_policy_structure.go
func flattenHostNetworkSecurityPolicy(d *schema.ResourceData, obj *types.HostNetworkSecurityPolicy) error {
	if obj.AllowPromiscuous != nil {
		d.Set("allow_promiscuous", *obj.AllowPromiscuous)
	}
	if obj.ForgedTransmits != nil {
		d.Set("allow_forged_transmits", *obj.ForgedTransmits)
	}
	if obj.MacChanges != nil {
		d.Set("allow_mac_changes", *obj.MacChanges)
	}
	return nil
}
func flattenHostNetworkSecurityPolicy(d *schema.ResourceData, obj *types.HostNetworkSecurityPolicy) error {
	if obj.AllowPromiscuous != nil {
		d.Set("allow_promiscuous", *obj.AllowPromiscuous)
	}
	if obj.ForgedTransmits != nil {
		d.Set("allow_forged_transmits", *obj.ForgedTransmits)
	}
	if obj.MacChanges != nil {
		d.Set("allow_mac_changes", *obj.MacChanges)
	}
	return nil
}
// flattenHostNetworkSecurityPolicy reads various fields from a
// HostNetworkSecurityPolicy into the passed in ResourceData.