# Enum - DvsNetworkRuleDirectionType(vim.dvs.TrafficRule.RuleDirectionType)

Since
  vSphere API 5.5

## Enum Description

Network Traffic Rule direction types. It specifies whether rule needs to be applied for packets which are incoming/outgoing or both.

Enum Constants

Name | Description
--- | ---
both | This specifies that the network rule has to be applied only for both incoming and outgoing packets.
incomingPackets | This specifies that the network rule has to be applied only for incoming packets.
outgoingPackets | This specifies that the network rule has to be applied only for outgoing packets.

Show WSDL type definition
<simpleType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="DvsNetworkRuleDirectionType"> <restriction base="xsd:string"> <enumeration value="incomingPackets"/> <enumeration value="outgoingPackets"/> <enumeration value="both"/> </restriction> </simpleType>