X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=pkg%2Frpe%2Ftypes.go;h=626213ed6f16bf4dc7c053328d9483ed6249d31e;hb=a8596ec6db91b8a45a1a21421a726b9b05ce7d48;hp=426cc7c93aa80ab6f9a1a58d318cc7a12556a8d2;hpb=92162653c9741f2417d1a36ec1c211d6863d0a68;p=ric-plt%2Frtmgr.git diff --git a/pkg/rpe/types.go b/pkg/rpe/types.go index 426cc7c..626213e 100644 --- a/pkg/rpe/types.go +++ b/pkg/rpe/types.go @@ -14,11 +14,16 @@ 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 */ @@ -26,18 +31,18 @@ package rpe 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 }