nettle-openflow-0.1: High level configuration and control of computer networks.

Nettle.OpenFlow.Action

Contents

Synopsis

Actions

data Action Source

Each flow table entry contains a list of actions that will be executed when a packet matches the entry. Specification: ofp_action_header and all ofp_action_* structures.

Constructors

SendOutPort PseudoPort

send out given port

SetVlanVID VLANID

set the 802.1q VLAN ID

SetVlanPriority VLANPriority

set the 802.1q priority

StripVlanHeader

strip the 802.1q header

SetEthSrcAddr EthernetAddress

set ethernet source address

SetEthDstAddr EthernetAddress

set ethernet destination address

SetIPSrcAddr IPAddress

set IP source address

SetIPDstAddr IPAddress

set IP destination address

SetIPToS IPTypeOfService

IP ToS (DSCP field)

SetTransportSrcPort TransportPort

set TCP/UDP source port

SetTransportDstPort TransportPort

set TCP/UDP destination port

Enqueue

output to queue

Fields

enqueuePort :: PortID

port the queue belongs to

queueID :: QueueID

where to enqueue the packets

VendorAction VendorID [Word8] 

Instances

data PseudoPort Source

A PseudoPort denotes the target of a forwarding action.

Constructors

PhysicalPort PortID

send out physical port with given id

InPort

send packet out the input port

Flood

send out all physical ports except input port and those disabled by STP

AllPhysicalPorts

send out all physical ports except input port

ToController MaxLenToSendController

send to controller

NormalSwitching

process with normal L2/L3 switching

WithTable

process packet with flow table

type MaxLenToSendController = Word16Source

A send to controller action includes the maximum number of bytes that a switch will send to the controller.

Action sequences

type ActionSequence = [Action]Source

Sequence of actions, represented as finite lists. The Monoid instance of lists provides methods for denoting the do-nothing action (mempty) and for concatenating action sequences mconcat.