base/frameworks/openflow/plugins/broker.zeek

OpenFlow

OpenFlow plugin for interfacing to controllers via Broker.

Namespace

OpenFlow

Imports

base/frameworks/broker, base/frameworks/openflow

Summary

Redefinitions

OpenFlow::ControllerState: record &redef

New Fields

OpenFlow::ControllerState

broker_host: addr &optional

Controller ip.

broker_port: port &optional

Controller listen port.

broker_dpid: count &optional

OpenFlow switch datapath id.

broker_topic: string &optional

Topic to send events for this controller to.

OpenFlow::Plugin: enum

Events

OpenFlow::broker_flow_clear: event

OpenFlow::broker_flow_mod: event

Functions

OpenFlow::broker_new: function

Broker controller constructor.

Detailed Interface

Events

OpenFlow::broker_flow_clear
Type

event (name: string, dpid: count)

OpenFlow::broker_flow_mod
Type

event (name: string, dpid: count, match: OpenFlow::ofp_match, flow_mod: OpenFlow::ofp_flow_mod)

Functions

OpenFlow::broker_new
Type

function (name: string, host: addr, host_port: port, topic: string, dpid: count) : OpenFlow::Controller

Broker controller constructor.

Parameters
  • host – Controller ip.

  • host_port – Controller listen port.

  • topic – Broker topic to send messages to.

  • dpid – OpenFlow switch datapath id.

Returns

OpenFlow::Controller record.