Creating dymanic endpoints(Eps) and distributing routes to those endpoints on upgrad...
[ric-plt/rtmgr.git] / pkg / rpe / types.go
index f55b08e..4a5b9fc 100644 (file)
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
+
+
+   This source code is part of the near-RT RIC (RAN Intelligent Controller)
+   platform project (RICP).
+
 ==================================================================================
 */
 /*
 ==================================================================================
 */
 /*
@@ -26,18 +31,18 @@ package rpe
 
 import "routing-manager/pkg/rtmgr"
 
 
 import "routing-manager/pkg/rtmgr"
 
-type generatePolicies func(rtmgr.Endpoints) *[]string
-type generateRouteTable 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
        Name        string
        Version     string
        Protocol    string
-       Instance    RpeEngine
+       Instance    Engine
        IsAvailable bool
 }
 
        IsAvailable bool
 }
 
-type RpeEngine interface {
-       GeneratePolicies(rtmgr.Endpoints) *[]string
+type Engine interface {
+       GeneratePolicies(rtmgr.Endpoints, *rtmgr.RicComponents) *[]string
        GenerateRouteTable(rtmgr.Endpoints) *rtmgr.RouteTable
 }
        GenerateRouteTable(rtmgr.Endpoints) *rtmgr.RouteTable
 }