Documentation ¶
Index ¶
- Variables
- func ServerLoop(listenPort int)
- type AppManager
- type Datapath
- type IFMap
- type OFController
- type Of13AggregateStatsReplyHandler
- type Of13AsyncConfigHandler
- type Of13BarrierReplyHandler
- type Of13DescStatsReplyHandler
- type Of13EchoReplyHandler
- type Of13EchoRequestHandler
- type Of13ErrorMsgHandler
- type Of13FlowRemovedHandler
- type Of13FlowStatsReplyHandler
- type Of13GroupDescStatsReplyHandler
- type Of13GroupFeaturesStatsReplyHandler
- type Of13GroupStatsReplyHandler
- type Of13MeterConfigStatsReplyHandler
- type Of13MeterFeaturesStatsReplyHandler
- type Of13MeterStatsReplyHandler
- type Of13PacketInHandler
- type Of13PortDescStatsReplyHandler
- type Of13PortStatsReplyHandler
- type Of13QueueStatsReplyHandler
- type Of13RoleReplyHandler
- type Of13SwitchConfigHandler
- type Of13SwitchFeaturesHandler
- type Of13TableFeaturesStatsReplyHandler
- type Of13TableStatsReplyHandler
Constants ¶
This section is empty.
Variables ¶
var DEFAULT_PORT = 6653
Functions ¶
func ServerLoop ¶
func ServerLoop(listenPort int)
Types ¶
type AppManager ¶
type AppManager struct {
// contains filtered or unexported fields
}
func GetAppManager ¶
func GetAppManager() *AppManager
func (*AppManager) GetApplications ¶
func (manager *AppManager) GetApplications() []interface{}
func (*AppManager) RegistApplication ¶
func (manager *AppManager) RegistApplication(app interface{})
type OFController ¶
type OFController struct {
// contains filtered or unexported fields
}
*
- basic controller
func NewOFController ¶
func NewOFController() *OFController
func (*OFController) ConnectionDown ¶
func (c *OFController) ConnectionDown()
func (*OFController) ConnectionUp ¶
func (c *OFController) ConnectionUp()
func (*OFController) HandleEchoRequest ¶
func (c *OFController) HandleEchoRequest(msg *ofp13.OfpHeader, dp *Datapath)
func (*OFController) HandleSwitchFeatures ¶
func (c *OFController) HandleSwitchFeatures(msg *ofp13.OfpSwitchFeatures, dp *Datapath)
type Of13AggregateStatsReplyHandler ¶
type Of13AggregateStatsReplyHandler interface {
HandleAggregateStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpAggregateStatsReply
***************************************************
type Of13AsyncConfigHandler ¶
type Of13AsyncConfigHandler interface {
HandleAsyncConfig(*ofp13.OfpAsyncConfig, *Datapath)
}
***************************************************
GetAsyncReply Message
***************************************************
type Of13BarrierReplyHandler ¶
***************************************************
BarrierReply Message
***************************************************
type Of13DescStatsReplyHandler ¶
type Of13DescStatsReplyHandler interface {
HandleDescStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpDescStatsReply
***************************************************
type Of13EchoReplyHandler ¶
type Of13EchoRequestHandler ¶
***************************************************
Echo Message
***************************************************
type Of13ErrorMsgHandler ¶
type Of13ErrorMsgHandler interface {
HandleErrorMsg(*ofp13.OfpErrorMsg, *Datapath)
}
***************************************************
OfpErrorMsg
***************************************************
type Of13FlowRemovedHandler ¶
type Of13FlowRemovedHandler interface {
HandleFlowRemoved(*ofp13.OfpFlowRemoved, *Datapath)
}
***************************************************
OfpFlowRemoved
***************************************************
type Of13FlowStatsReplyHandler ¶
type Of13FlowStatsReplyHandler interface {
HandleFlowStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpFlowStatsReply
***************************************************
type Of13GroupDescStatsReplyHandler ¶
type Of13GroupDescStatsReplyHandler interface {
HandleGroupDescStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpGroupDescStatsReply
***************************************************
type Of13GroupFeaturesStatsReplyHandler ¶
type Of13GroupFeaturesStatsReplyHandler interface {
HandleGroupFeaturesStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpGroupFeaturesStatsReply
***************************************************
type Of13GroupStatsReplyHandler ¶
type Of13GroupStatsReplyHandler interface {
HandleGroupStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpGroupStatsReply
***************************************************
type Of13MeterConfigStatsReplyHandler ¶
type Of13MeterConfigStatsReplyHandler interface {
HandleMeterConfigStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpMeterConfigStatsReply
***************************************************
type Of13MeterFeaturesStatsReplyHandler ¶
type Of13MeterFeaturesStatsReplyHandler interface {
HandleMeterFeaturesStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpMeterFeaturesStatsReply
***************************************************
type Of13MeterStatsReplyHandler ¶
type Of13MeterStatsReplyHandler interface {
HandleMeterStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpMeterStatsReply
***************************************************
type Of13PacketInHandler ¶
type Of13PacketInHandler interface {
HandlePacketIn(*ofp13.OfpPacketIn, *Datapath)
}
***************************************************
OfpPacketIn
***************************************************
type Of13PortDescStatsReplyHandler ¶
type Of13PortDescStatsReplyHandler interface {
HandlePortDescStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpPortDescStatsReply
***************************************************
type Of13PortStatsReplyHandler ¶
type Of13PortStatsReplyHandler interface {
HandlePortStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpPortStatsReply
***************************************************
type Of13QueueStatsReplyHandler ¶
type Of13QueueStatsReplyHandler interface {
HandleQueueStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpQueueStatsReply
***************************************************
type Of13RoleReplyHandler ¶
***************************************************
RoleReply Message
***************************************************
type Of13SwitchConfigHandler ¶
type Of13SwitchConfigHandler interface {
HandleSwitchConfig(*ofp13.OfpSwitchConfig, *Datapath)
}
***************************************************
OfpSwitchConfig
***************************************************
type Of13SwitchFeaturesHandler ¶
type Of13SwitchFeaturesHandler interface {
HandleSwitchFeatures(*ofp13.OfpSwitchFeatures, *Datapath)
}
***************************************************
OfpSwitchFeatures
***************************************************
type Of13TableFeaturesStatsReplyHandler ¶
type Of13TableFeaturesStatsReplyHandler interface {
HandleTableFeaturesStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpTableFeaturesStatsReply
***************************************************
type Of13TableStatsReplyHandler ¶
type Of13TableStatsReplyHandler interface {
HandleTableStatsReply(*ofp13.OfpMultipartReply, *Datapath)
}
***************************************************
OfpTableStatsReply
***************************************************