add route for reset procedure
[ric-plt/rtmgr.git] / pkg / rpe / types.go
index 69f01c4..95cdf01 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).
+
 ==================================================================================
 */
 /*
   Mnemonic:    rpe/types.go
 ==================================================================================
 */
 /*
   Mnemonic:    rpe/types.go
-  Abstract:    Containes RPE (Route Policy Engine) specific types
+  Abstract:    Contains RPE (Route Policy Engine) specific types
   Date:                12 March 2019
 */
 
 package rpe
 
   Date:                12 March 2019
 */
 
 package rpe
 
-import "rtmgr"
+import (
+       "routing-manager/pkg/models"
+       "routing-manager/pkg/rtmgr"
+)
 
 
-type generatePolicies func(*[]rtmgr.XApp) (*[]string)
+//type generatePolicies func(rtmgr.Endpoints) *[]string
+//type generateRouteTable func(rtmgr.Endpoints) *rtmgr.RouteTable
+
+type EngineConfig struct {
+       Name        string
+       Version     string
+       Protocol    string
+       Instance    Engine
+       IsAvailable bool
+}
 
 
-type RpeEngine struct {
-       Name     string
-       Version  string
-       Protocol string
+type Engine interface {
+       GeneratePolicies(rtmgr.Endpoints, *rtmgr.RicComponents) *[]string
+       GenerateRouteTable(rtmgr.Endpoints) *rtmgr.RouteTable
+       GeneratePartialPolicies(eps rtmgr.Endpoints, xappSubData *models.XappSubscriptionData, updatetype rtmgr.RMRUpdateType) *[]string
 }
 
 }
 
-type RpeEngineConfig struct {
-       Engine           RpeEngine
-       GeneratePolicies generatePolicies
-       IsAvailable      bool
+type RouteIndex struct {
+       flag  bool
+       index uint16
 }
 }