Skip to content

Commit

Permalink
don't add device when announce a device DOWN for ONOS topology.
Browse files Browse the repository at this point in the history
Signed-off-by: Jianwei Mao <[email protected]>
  • Loading branch information
MaoJianwei committed Sep 1, 2024
1 parent e2294db commit 5dace48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incubator/OnosTopoShow/onos-topo-module.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (o *OnosTopoModule) topoEventLoop() {
}()
case MaoApi.SERVICE_DOWN:
go func(){
o.topoAddDevice(event.ServiceName, event.Timestamp.String(), event.EventSource)
//o.topoAddDevice(event.ServiceName, event.Timestamp.String(), event.EventSource)
o.topoOfflineDevice(event.ServiceName)
}()
case MaoApi.SERVICE_DELETE:
Expand Down

0 comments on commit 5dace48

Please sign in to comment.