crip/main.go
Jim Colderwood 210141b8d5 refactoring
2024-04-25 14:39:46 +01:00

25 lines
363 B
Go

package main
import (
"github.com/crip/config"
"github.com/crip/ripv2"
"github.com/crip/rtable"
"log"
)
func callback(r *ripv2.Routes) {
rtable.Pass(r)
}
func main() {
conf := config.Read("config.json")
rip := ripv2.New()
routes := ripv2.Init()
routes.Timer()
if err := rip.Run(conf, callback); err != nil {
log.Fatal(err)
}
/* NOT REACHED */
}