mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
server: remove restart() from watcher interface
Signed-off-by: ISHIDA Wataru <[email protected]>
This commit is contained in:
@@ -227,10 +227,6 @@ func (w *bmpWatcher) loop() error {
|
||||
}
|
||||
}
|
||||
|
||||
func (w *bmpWatcher) restart(string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func bmpPeerUp(laddr string, lport, rport uint16, sent, recv *bgp.BGPMessage, t uint8, policy bool, pd uint64, peeri *table.PeerInfo, timestamp int64) *bmp.BMPMessage {
|
||||
ph := bmp.NewBMPPeerHeader(t, policy, pd, peeri.Address.String(), peeri.AS, peeri.ID.String(), float64(timestamp))
|
||||
return bmp.NewBMPPeerUpNotification(*ph, laddr, lport, rport, sent, recv)
|
||||
|
||||
@@ -50,10 +50,6 @@ func (c *Collector) notify(t watcherEventType) chan watcherEvent {
|
||||
func (c *Collector) stop() {
|
||||
}
|
||||
|
||||
func (c *Collector) restart(filename string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Collector) watchingEventTypes() []watcherEventType {
|
||||
return []watcherEventType{WATCHER_EVENT_UPDATE_MSG, WATCHER_EVENT_STATE_CHANGE, WATCHER_EVENT_ADJ_IN}
|
||||
}
|
||||
|
||||
@@ -186,10 +186,6 @@ func (w *grpcWatcher) loop() error {
|
||||
}
|
||||
}
|
||||
|
||||
func (w *grpcWatcher) restart(string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (w *grpcWatcher) addRequest(req *GrpcRequest) error {
|
||||
w.ctlCh <- req
|
||||
return nil
|
||||
|
||||
@@ -93,7 +93,6 @@ type watcherEventBestPathMsg struct {
|
||||
|
||||
type watcher interface {
|
||||
notify(watcherEventType) chan watcherEvent
|
||||
restart(string) error
|
||||
stop()
|
||||
watchingEventTypes() []watcherEventType
|
||||
}
|
||||
|
||||
@@ -184,10 +184,6 @@ func (w *zebraWatcher) stop() {
|
||||
w.t.Kill(nil)
|
||||
}
|
||||
|
||||
func (w *zebraWatcher) restart(filename string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (w *zebraWatcher) watchingEventTypes() []watcherEventType {
|
||||
return []watcherEventType{WATCHER_EVENT_BESTPATH_CHANGE}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user