Documentation ¶
Index ¶
- Constants
- type Allocator
- type Bitmap
- type ConfigManager
- type Event
- type EventType
- type Interface
- type LDPSession
- type Server
- func (server *Server) AddInterface(d config.Interface) error
- func (server *Server) AddInterfaceAddress(d config.Interface) error
- func (server *Server) AddLocalLabelMapping(label int, fec ...string) error
- func (server *Server) DeleteInterface(d config.Interface) error
- func (server *Server) DeleteInterfaceAddress(d config.Interface) error
- func (server *Server) DeleteLocalLabelMapping(fec ...string) error
- func (server *Server) GetConfig() (config.Config, error)
- func (server *Server) GetInterface(d config.Interface) (config.Interface, error)
- func (server *Server) GetLabelMapping(fec string) (config.Mapping, error)
- func (server *Server) ListInterface() ([]config.Interface, error)
- func (server *Server) ListLabelMapping() ([]config.Mapping, error)
- func (server *Server) ListSession() ([]config.Session, error)
- func (server *Server) MonitorSession() (Watcher, error)
- func (server *Server) StartServer(g config.Global) (*Server, error)
- func (server *Server) Stop() error
- type SyncWatcher
- type Watcher
- type ZebraClient
Constants ¶
View Source
const ( NON_EXISTENT fsmState = iota INITIALIZED OPENREC OPENSENT OPERATIONAL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
func NewAllocator ¶
type ConfigManager ¶
type ConfigManager struct { ReloadCh chan struct{} // contains filtered or unexported fields }
func NewConfigManager ¶
func NewConfigManager(file, format string, ldpServer *Server) *ConfigManager
func (*ConfigManager) Serve ¶
func (m *ConfigManager) Serve()
func (*ConfigManager) WaitReload ¶
func (m *ConfigManager) WaitReload() error
type EventType ¶
type EventType uint64
const ( EVENT_SESSION_ADD EventType = 1 << iota EVENT_SESSION_DEL EVENT_SESSION_UPDATE EVENT_LABEL_LOCAL_ADD EVENT_LABEL_LOCAL_DEL EVENT_SESSION EventType = EVENT_SESSION_ADD | EVENT_SESSION_DEL | EVENT_SESSION_UPDATE EVENT_LABEL_LOCAL EventType = EVENT_LABEL_LOCAL_ADD | EVENT_LABEL_LOCAL_DEL EVENT_LABEL EventType = EVENT_LABEL_LOCAL )
type LDPSession ¶
func (*LDPSession) AcceptableInit ¶
func (s *LDPSession) AcceptableInit(msg ldp.MessageInterface) (ldp.MessageInterface, bool)
func (*LDPSession) Active ¶
func (s *LDPSession) Active() bool
func (*LDPSession) ToConfig ¶
func (s *LDPSession) ToConfig() config.Session
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddInterfaceAddress ¶
func (*Server) AddLocalLabelMapping ¶
func (*Server) DeleteInterfaceAddress ¶
func (*Server) DeleteLocalLabelMapping ¶
func (*Server) GetInterface ¶
func (*Server) GetLabelMapping ¶
func (*Server) ListLabelMapping ¶
func (*Server) MonitorSession ¶
type SyncWatcher ¶
type SyncWatcher struct {
// contains filtered or unexported fields
}
func (*SyncWatcher) Next ¶
func (w *SyncWatcher) Next() *Event
func (*SyncWatcher) Stop ¶
func (w *SyncWatcher) Stop()
type Watcher ¶
type Watcher interface { Stop() Next() *Event // contains filtered or unexported methods }
type ZebraClient ¶
type ZebraClient struct {
// contains filtered or unexported fields
}
func NewZebraClient ¶
func NewZebraClient(network, address string, ldpServer *Server) *ZebraClient
func (*ZebraClient) Serve ¶
func (z *ZebraClient) Serve()
Click to show internal directories.
Click to hide internal directories.