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

Nettle.OpenFlow.Port

Synopsis

Documentation

data Port Source

A switch receives and sends packets on a port; The Port data type models attributes of a physical port.

Constructors

Port 

Fields

portID :: PortID

value datapath associates with a physical port

portName :: String

human-readable interface name

portAddress :: EthernetAddress

the Ethernet address of the port

portConfig :: [PortConfigAttribute]

describes spanning tree and administrative settings

portLinkDown :: Bool

describes whether the link is down

portSTPState :: SpanningTreePortState

describes spanning tree state

portCurrentFeatures :: Maybe PortFeatures

port's current features

portAdvertisedFeatures :: Maybe PortFeatures

features advertised by port

portSupportedFeatures :: Maybe PortFeatures

features supported by port

portPeerFeatures :: Maybe PortFeatures

features advertised by peer

Instances

data PortConfigAttribute Source

Possible behaviors of a physical port. Specification: ofp_port_config.

Constructors

PortDown

port is administratively down

STPDisabled

disable 802.1D spanning tree on this port

OnlySTPackets

drop all packets except 802.1D spanning tree packets

NoSTPackets

drop received 802.1D STP packets

NoFlooding

do not include this port when flooding

DropForwarded

drop packets forwarded to port

NoPacketInMsg

do not send packet-in messages for this port

data PortFeature Source

Possible port features. Specification ofp_port_features.

Constructors

Rate10MbHD

10 Mb half-duplex rate support

Rate10MbFD

10 Mb full-duplex rate support

Rate100MbHD

100 Mb half-duplex rate support

Rate100MbFD

100 Mb full-duplex rate support

Rate1GbHD

1 Gb half-duplex rate support

Rate1GbFD

1 Gb full-duplex rate support

Rate10GbFD

10 Gb full-duplex rate support

Copper 
Fiber 
AutoNegotiation 
Pause 
AsymmetricPause 

type PortFeatures = [PortFeature]Source

Set of PortFeatures. Specification: bitmap of members in enum ofp_port_features.

data PortMod Source

A port can be configured with a PortMod message.

Constructors

PortMod 

Fields

portNumber :: PortID

port number of port to modify

hwAddr :: EthernetAddress

hardware address of the port (redundant with the port number above; both are required)

attributesToSet :: Map PortConfigAttribute Bool

attributes mapped to true will be set on, attributes mapped to false will be turned off, and attributes missing will be unchanged

type PortStatus = (PortStatusUpdateReason, Port)Source

The PortStatus represents information regarding a change to a port state on a switch.