X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frpe%2Ftypes.go;h=2d466d3951e6f54aaa5d07ee1f9629eecd0539d7;hb=4101d1060980858538c5600af8d9ad7a258db107;hp=f55b08eac75157aa24c675bfecffa05c743cfc59;hpb=eb2ff0d217caf158dd15424bf70f8aa79c3742b1;p=ric-plt%2Frtmgr.git diff --git a/pkg/rpe/types.go b/pkg/rpe/types.go index f55b08e..2d466d3 100644 --- a/pkg/rpe/types.go +++ b/pkg/rpe/types.go @@ -14,6 +14,11 @@ 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). + ================================================================================== */ /* @@ -24,20 +29,24 @@ package rpe -import "routing-manager/pkg/rtmgr" +import ( + "routing-manager/pkg/models" + "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 - Instance RpeEngine + Instance Engine IsAvailable bool } -type RpeEngine interface { - GeneratePolicies(rtmgr.Endpoints) *[]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 }