*/
/*
Mnemonic: rpe/types.go
- Abstract: Containes RPE (Route Policy Engine) specific types
+ Abstract: Contains RPE (Route Policy Engine) specific types
Date: 12 March 2019
*/
import "routing-manager/pkg/rtmgr"
-type generatePolicies func(rtmgr.Endpoints) *[]string
-type getRouteTable func(rtmgr.Endpoints) *rtmgr.RouteTable
+//type generatePolicies func(rtmgr.Endpoints) *[]string
+//type generateRouteTable func(rtmgr.Endpoints) *rtmgr.RouteTable
-type RpeEngineConfig struct {
+type EngineConfig struct {
Name string
Version string
Protocol string
- Instance RpeEngine
+ Instance Engine
IsAvailable bool
}
-type RpeEngine interface {
+type Engine interface {
GeneratePolicies(rtmgr.Endpoints) *[]string
- GetRouteTable(rtmgr.Endpoints) *rtmgr.RouteTable
+ GenerateRouteTable(rtmgr.Endpoints) *rtmgr.RouteTable
}