# Data Object - DVSMacLearningPolicy(vim.dvs.VmwareDistributedVirtualSwitch.MacLearningPolicy)

Property of
  DVSMacManagementPolicy
Extends
  InheritablePolicy
Since
  vSphere API 6.7

## Data Object Description

This data object type describes MAC learning policy of a port.

Properties

Name | Type | Description
--- | --- | ---
allowUnicastFlooding* | xsd:boolean | The flag to allow flooding of unlearned MAC for ingress traffic.
enabled | xsd:boolean | The flag to indicate if source MAC address learning is allowed.
limit* | xsd:int | The maximum number of MAC addresses that can be learned.
limitPolicy* | xsd:string | The default switching policy after MAC limit is exceeded. See DVSMacLimitPolicyType for valid values.
Properties inherited from InheritablePolicy
inherited
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="DVSMacLearningPolicy"> <complexContent> <extension base="vsan:InheritablePolicy"> <sequence> <element name="enabled" type="xsd:boolean"/> <element name="allowUnicastFlooding" type="xsd:boolean" minOccurs="0"/> <element name="limit" type="xsd:int" minOccurs="0"/> <element name="limitPolicy" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>