# Data Object - HostNetworkPolicy(vim.host.NetworkPolicy)

Property of
  HostPortGroup, HostPortGroupSpec, HostVirtualSwitchSpec
Extends
  DynamicData
See also
  HostNetOffloadCapabilities, HostNetworkSecurityPolicy, HostNetworkTrafficShapingPolicy, HostNicTeamingPolicy

## Data Object Description

This data object type describes network policies that can be configured for both virtual switches and port groups. The policy settings on the port group can inherit policy settings from their containing virtual switch. These policy settings are inherited if the settings on the port group are not set. Since every policy setting on a port group is optional, every individual policy setting can be inherited.

By contrast, if a host is capable of implementing a policy setting, every virtual switch has some value assigned to the policy setting. In this case, although all of the policy settings are optional, they always have some value either by inheritance or by direct setting.

Policy settings are organized into policy groups such as SecurityPolicy. Policy groups are optional since it is possible that a host may not implement such policies. If a host does not support a policy group, the policy group is not set on both the virtual switches and the port groups.
See HostNetCapabilities

Properties

Name | Type | Description
--- | --- | ---
nicTeaming* | HostNicTeamingPolicy | The network adapter teaming policy. The bridge must be BondBridge for this property to be valid.
offloadPolicy* | HostNetOffloadCapabilities | Deprecated. As of VI API 4.0, the system defaults will be used. Offload capabilities are used to optimize virtual machine network performance. When a virtual machine is transmitting on a network, some operations can be offloaded to either the host or the physical hardware. This policy indicates what networking related operations should be offloaded. All virtual machines using this PortGroup are subject to this policy. There is no setting for an individual virtual machine to determine if an operation should be offloaded.
security* | HostNetworkSecurityPolicy | The security policy governing ports on this virtual switch.
shapingPolicy* | HostNetworkTrafficShapingPolicy | The traffic shaping policy.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="HostNetworkPolicy"> <complexContent> <extension base="vim25:DynamicData"> <sequence> <element name="security" type="vim25:HostNetworkSecurityPolicy" minOccurs="0"/> <element name="nicTeaming" type="vim25:HostNicTeamingPolicy" minOccurs="0"/> <element name="offloadPolicy" type="vim25:HostNetOffloadCapabilities" minOccurs="0"/> <element name="shapingPolicy" type="vim25:HostNetworkTrafficShapingPolicy" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>