OpenFlow NamespaceΒΆ

Namespace: OpenFlow.

class zlogging.enum.OpenFlow.ofp_action_type(value)[source]

Bases: IntFlag

Enum: OpenFlow::ofp_action_type.

Openflow action_type definitions.

The openflow action type defines what actions openflow can take to modify a packet.

OFPAT_OUTPUT = 1

Output to switch port.

OFPAT_SET_VLAN_VID = 2

Set the 802.1q VLAN id.

OFPAT_SET_VLAN_PCP = 4

Set the 802.1q priority.

OFPAT_STRIP_VLAN = 8

Strip the 802.1q header.

OFPAT_SET_DL_SRC = 16

Ethernet source address.

OFPAT_SET_DL_DST = 32

Ethernet destination address.

OFPAT_SET_NW_SRC = 64

IP source address.

OFPAT_SET_NW_DST = 128

IP destination address.

OFPAT_SET_NW_TOS = 256

IP ToS (DSCP field, 6 bits).

OFPAT_SET_TP_SRC = 512

TCP/UDP source port.

OFPAT_SET_TP_DST = 1024

TCP/UDP destination port.

OFPAT_ENQUEUE = 2048

Output to queue.

OFPAT_VENDOR = 4096

Vendor specific.

class zlogging.enum.OpenFlow.ofp_config_flags(value)[source]

Bases: IntFlag

Enum: OpenFlow::ofp_config_flags.

Openflow config flag definitions.

TODO: describe.

OFPC_FRAG_NORMAL = 1

No special handling for fragments.

OFPC_FRAG_DROP = 2

Drop fragments.

OFPC_FRAG_REASM = 4

Reassemble (only if OFPC_IP_REASM set).

OFPC_FRAG_MASK = 8
class zlogging.enum.OpenFlow.ofp_flow_mod_command(value)[source]

Bases: IntFlag

Enum: OpenFlow::ofp_flow_mod_command.

Openflow flow_mod_command definitions.

The openflow flow_mod_command describes of what kind an action is.

OFPFC_ADD = 1

New flow.

OFPFC_MODIFY = 2

Modify all matching flows.

OFPFC_MODIFY_STRICT = 4

Modify entry strictly matching wildcards.

OFPFC_DELETE = 8

Delete all matching flows.

OFPFC_DELETE_STRICT = 16

Strictly matching wildcards and priority.

class zlogging.enum.OpenFlow.Plugin(value)[source]

Bases: IntFlag

Enum: OpenFlow::Plugin.

Available openflow plugins.

INVALID = 1

Internal placeholder plugin.

RYU = 2

(present if base/frameworks/openflow/plugins/ryu.zeek is loaded)

OFLOG = 4

(present if base/frameworks/openflow/plugins/log.zeek is loaded)

BROKER = 8

(present if base/frameworks/openflow/plugins/broker.zeek is loaded)