Documentation ¶
Index ¶
- Variables
- type Controller
- type ControllerEventListener
- type Descriptions
- type Device
- func (r *Device) Close()
- func (r *Device) Descriptions() Descriptions
- func (r *Device) Factory() openflow.Factory
- func (r *Device) Features() Features
- func (r *Device) FlowTableID() uint8
- func (r *Device) ID() string
- func (r *Device) IsClosed() bool
- func (r *Device) Port(num uint32) *Port
- func (r *Device) Ports() []*Port
- func (r *Device) RemoveAllFlows() error
- func (r *Device) RemoveFlow(match openflow.Match, port openflow.OutPort) error
- func (r *Device) SendARPAnnouncement(ip net.IP, mac net.HardwareAddr) error
- func (r *Device) SendMessage(msg encoding.BinaryMarshaler) error
- func (r *Device) String() string
- type EventListener
- type Features
- type Finder
- type Host
- type HostParam
- type IP
- type Network
- type NetworkParam
- type Node
- type Port
- type Switch
- type SwitchParam
- type SwitchPort
- type TopologyEventListener
- type VIP
- type VIPParam
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClosedDevice = errors.New("already closed device")
)
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(log log.Logger, db database, conf *goconf.ConfigFile) *Controller
func (*Controller) AddConnection ¶
func (r *Controller) AddConnection(ctx context.Context, c net.Conn)
func (*Controller) SetEventListener ¶
func (r *Controller) SetEventListener(l EventListener)
func (*Controller) String ¶
func (r *Controller) String() string
type ControllerEventListener ¶
type Descriptions ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) Descriptions ¶
func (r *Device) Descriptions() Descriptions
func (*Device) FlowTableID ¶
func (*Device) RemoveAllFlows ¶
func (*Device) RemoveFlow ¶
func (*Device) SendARPAnnouncement ¶
func (*Device) SendMessage ¶
func (r *Device) SendMessage(msg encoding.BinaryMarshaler) error
type EventListener ¶
type EventListener interface { ControllerEventListener TopologyEventListener }
type Finder ¶
type Finder interface { Device(id string) *Device Devices() []*Device // IsEnabledBySTP returns whether p is disabled by spanning tree protocol IsEnabledBySTP(p *Port) bool // IsEdge returns whether p is an edge among two switches IsEdge(p *Port) bool Node(mac net.HardwareAddr) (*Node, error) Path(srcDeviceID, dstDeviceID string) [][2]*Port }
type Network ¶
type Network struct { ID uint64 `json:"id"` NetworkParam }
type NetworkParam ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) MAC ¶
func (r *Node) MAC() net.HardwareAddr
type Switch ¶
type Switch struct { ID uint64 `json:"id"` SwitchParam }
type SwitchParam ¶
type SwitchPort ¶
type TopologyEventListener ¶
Click to show internal directories.
Click to hide internal directories.