openc2lib.profiles.slpf.data.direction

 1from openc2lib import Enumerated
 2
 3class Direction(Enumerated):
 4	""" Direction enumeration
 5
 6		The packet direction to which a rule applies.
 7		Defined in Sec. 2.1.3.2 of the SLPF Specification.
 8	"""
 9	both=1
10	""" Apply rules to all traffic """
11	ingress=2
12	""" Apply rules to incoming traffic only """
13	egress=3
14	""" Apply rules to outgoing traffic only """
class Direction(openc2lib.types.base.enumerated.Enumerated):
 4class Direction(Enumerated):
 5	""" Direction enumeration
 6
 7		The packet direction to which a rule applies.
 8		Defined in Sec. 2.1.3.2 of the SLPF Specification.
 9	"""
10	both=1
11	""" Apply rules to all traffic """
12	ingress=2
13	""" Apply rules to incoming traffic only """
14	egress=3
15	""" Apply rules to outgoing traffic only """

Direction enumeration

The packet direction to which a rule applies. Defined in Sec. 2.1.3.2 of the SLPF Specification.

both = <Direction.both: 1>

Apply rules to all traffic

ingress = <Direction.ingress: 2>

Apply rules to incoming traffic only

egress = <Direction.egress: 3>

Apply rules to outgoing traffic only

Inherited Members
openc2lib.types.base.enumerated.Enumerated
todict
fromdict
aenum._enum.Enum
name
value
values