package rpe
-import "rtmgr"
+import "routing-manager/pkg/rtmgr"
type generatePolicies func(rtmgr.Endpoints) *[]string
+type getRouteTable func(rtmgr.Endpoints) *rtmgr.RouteTable
-type RpeEngine struct {
- Name string
- Version string
- Protocol string
+type RpeEngineConfig struct {
+ Name string
+ Version string
+ Protocol string
+ Instance RpeEngine
+ IsAvailable bool
}
-type RpeEngineConfig struct {
- Engine RpeEngine
- GeneratePolicies generatePolicies
- IsAvailable bool
+type RpeEngine interface {
+ GeneratePolicies(rtmgr.Endpoints) *[]string
+ GetRouteTable(rtmgr.Endpoints) *rtmgr.RouteTable
}