X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frpe%2Ftypes.go;h=4a5b9fcc9d7a26bde8e7e0bf8b1e68e2b8ecb80b;hb=e110ee0d197cd7d61faf4ad761ebad3bf0c68121;hp=69f01c4c9cabc33790339b8ae89cba107edaef7a;hpb=871fa393844ce1b61b8d5218d27687d9fc05803a;p=ric-plt%2Frtmgr.git diff --git a/pkg/rpe/types.go b/pkg/rpe/types.go index 69f01c4..4a5b9fc 100644 --- a/pkg/rpe/types.go +++ b/pkg/rpe/types.go @@ -14,28 +14,35 @@ 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 - Abstract: Containes RPE (Route Policy Engine) specific types + Abstract: Contains RPE (Route Policy Engine) specific types Date: 12 March 2019 */ package rpe -import "rtmgr" +import "routing-manager/pkg/rtmgr" -type generatePolicies func(*[]rtmgr.XApp) (*[]string) +//type generatePolicies func(rtmgr.Endpoints) *[]string +//type generateRouteTable func(rtmgr.Endpoints) *rtmgr.RouteTable -type RpeEngine struct { - Name string - Version string - Protocol string +type EngineConfig struct { + Name string + Version string + Protocol string + Instance Engine + IsAvailable bool } -type RpeEngineConfig struct { - Engine RpeEngine - GeneratePolicies generatePolicies - IsAvailable bool +type Engine interface { + GeneratePolicies(rtmgr.Endpoints, *rtmgr.RicComponents) *[]string + GenerateRouteTable(rtmgr.Endpoints) *rtmgr.RouteTable }