OpenFlow NamespaceΒΆ

Namespace: OpenFlow.

class zlogging.enum.open_flow.ofp_action_type(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[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.

static _generate_next_value_(name, start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_values: the last value assigned or None

class zlogging.enum.open_flow.ofp_config_flags(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[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
static _generate_next_value_(name, start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_values: the last value assigned or None

class zlogging.enum.open_flow.ofp_flow_mod_command(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[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.

static _generate_next_value_(name, start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_values: the last value assigned or None

class zlogging.enum.open_flow.Plugin(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[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)

static _generate_next_value_(name, start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_values: the last value assigned or None