Documentation
¶
Index ¶
- func AddFlow(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func NewDemoInstance() interface{}
- func NewL2Forwarder() interface{}
- func NewL3Forwarder(f []string) func() interface{}
- func NewWebService(apiOn string)
- func Switches(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func TestMod(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- type DemoInstance
- type FlowMods
- type Host
- type Hostmap
- type L2Forwarder
- type L3Forwarder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlow ¶
func AddFlow(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
AddFlow adds flow for switches
func NewL3Forwarder ¶
func NewL3Forwarder(f []string) func() interface{}
NewL3Forwarder L3Forwarder constructor
func NewWebService ¶
func NewWebService(apiOn string)
NewWebService created go web service with three endpoints
func Switches ¶
func Switches(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Switches populates ogo.Switches() with received json
func TestMod ¶
func TestMod(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
TestMod ;;;
Types ¶
type DemoInstance ¶
type DemoInstance struct{}
DemoInstance definition
func (*DemoInstance) ConnectionDown ¶
func (b *DemoInstance) ConnectionDown(dpid net.HardwareAddr)
ConnectionDown logger
func (*DemoInstance) ConnectionUp ¶
func (b *DemoInstance) ConnectionUp(dpid net.HardwareAddr)
ConnectionUp logger
func (*DemoInstance) PacketIn ¶
func (b *DemoInstance) PacketIn(dpid net.HardwareAddr, pkt *ofp10.PacketIn)
PacketIn processes input packet
type L2Forwarder ¶
type L2Forwarder struct {
*Hostmap
}
L2Forwarder definition
func (*L2Forwarder) PacketIn ¶
func (l2 *L2Forwarder) PacketIn(dpid net.HardwareAddr, pkt *ofp10.PacketIn)
PacketIn processess input packet
type L3Forwarder ¶
type L3Forwarder struct {
// contains filtered or unexported fields
}
L3Forwarder definition
func (*L3Forwarder) ConnectionUp ¶
func (l3 *L3Forwarder) ConnectionUp(dpid net.HardwareAddr)
ConnectionUp just a logger
func (*L3Forwarder) PacketIn ¶
func (l3 *L3Forwarder) PacketIn(dpid net.HardwareAddr, pkt *ofp10.PacketIn)
PacketIn processes input packet
Click to show internal directories.
Click to hide internal directories.