mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 16:47:11 +08:00
fea: access for ceci.
This commit is contained in:
23
cmd/switch/main_linux.go
Executable file
23
cmd/switch/main_linux.go
Executable file
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/luscis/openlan/pkg/cache"
|
||||
"github.com/luscis/openlan/pkg/config"
|
||||
"github.com/luscis/openlan/pkg/libol"
|
||||
cswitch "github.com/luscis/openlan/pkg/switch"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c := config.NewSwitch()
|
||||
config.Update(c)
|
||||
|
||||
libol.SetLogger(c.Log.File, c.Log.Verbose)
|
||||
cache.Init(&c.Perf)
|
||||
s := cswitch.NewSwitch(c)
|
||||
libol.PreNotify()
|
||||
s.Initialize()
|
||||
s.Start()
|
||||
libol.SdNotify()
|
||||
libol.Wait()
|
||||
s.Stop()
|
||||
}
|
Reference in New Issue
Block a user