From 761934a3d9f7a1426d1e14e34fb9a4c16599a237 Mon Sep 17 00:00:00 2001 From: wahidw Date: Wed, 27 Nov 2019 06:07:26 +0000 Subject: [PATCH] Adding scope of RICPlatform that are under Apache License Change-Id: I233fbe43f6d704d298f0bff71bb69ed5eb1db97b Signed-off-by: wahidw --- api/routing_manager.yaml | 5 ++ cmd/rtmgr.go | 6 ++ container-tag.yaml | 2 +- docs/conf.py | 4 ++ docs/conf.yaml | 4 ++ glide.yaml | 4 ++ manifests/namespace.yaml | 6 ++ manifests/rtmgr/rtmgr-cfg.yaml | 5 ++ manifests/rtmgr/rtmgr-dep.yaml | 5 ++ manifests/rtmgr/rtmgr-svc.yaml | 5 ++ pkg/nbi/httpgetter.go | 5 ++ pkg/nbi/httpgetter_test.go | 5 ++ pkg/nbi/httprestful.go | 10 +++- pkg/nbi/httprestful_test.go | 8 ++- pkg/nbi/nbi.go | 16 ++++-- pkg/nbi/nbi_test.go | 14 +++-- pkg/nbi/types.go | 5 ++ pkg/rpe/rmr.go | 5 ++ pkg/rpe/rmr_test.go | 5 ++ pkg/rpe/rpe.go | 33 ++++++----- pkg/rpe/types.go | 5 ++ pkg/rtmgr/rtmgr.go | 121 +++++++++++++++++++++-------------------- pkg/rtmgr/rtmgr_test.go | 4 ++ pkg/rtmgr/types.go | 4 ++ pkg/sbi/nngpush.go | 9 ++- pkg/sbi/nngpush_test.go | 4 ++ pkg/sbi/sbi.go | 4 ++ pkg/sbi/sbi_test.go | 4 ++ pkg/sbi/types.go | 4 ++ pkg/sdl/file.go | 4 ++ pkg/sdl/sdl.go | 4 ++ pkg/sdl/sdl_test.go | 4 ++ pkg/sdl/types.go | 4 ++ pkg/stub/mangos.go | 4 ++ pkg/stub/stub.go | 4 ++ run_rtmgr.sh | 4 ++ 36 files changed, 252 insertions(+), 87 deletions(-) diff --git a/api/routing_manager.yaml b/api/routing_manager.yaml index 7bfbfea..f4f852d 100644 --- a/api/routing_manager.yaml +++ b/api/routing_manager.yaml @@ -14,9 +14,14 @@ # 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). +# #================================================================================== # # +# # Abstract: Routing Manager's RESTful API definition # Date: 28 August 2019 # diff --git a/cmd/rtmgr.go b/cmd/rtmgr.go index 24b917c..101c743 100644 --- a/cmd/rtmgr.go +++ b/cmd/rtmgr.go @@ -14,6 +14,12 @@ 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). + + ================================================================================== */ /* diff --git a/container-tag.yaml b/container-tag.yaml index 7fdb240..dc6f324 100644 --- a/container-tag.yaml +++ b/container-tag.yaml @@ -2,4 +2,4 @@ # By default this file is in the docker build directory, # but the location can configured in the JJB template. --- -tag: 0.3.9 +tag: 0.4.0 diff --git a/docs/conf.py b/docs/conf.py index e59789c..bc87192 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,6 +13,10 @@ # 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). +# #================================================================================== from docs_conf.conf import * diff --git a/docs/conf.yaml b/docs/conf.yaml index 349b100..36dfa54 100644 --- a/docs/conf.yaml +++ b/docs/conf.yaml @@ -14,6 +14,10 @@ # 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). +# #================================================================================== project_cfg: oran project: ric-plt-rtmgr diff --git a/glide.yaml b/glide.yaml index cb916c3..683cbb9 100644 --- a/glide.yaml +++ b/glide.yaml @@ -14,6 +14,10 @@ # 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). +# #================================================================================== # # diff --git a/manifests/namespace.yaml b/manifests/namespace.yaml index 9414a35..b809216 100644 --- a/manifests/namespace.yaml +++ b/manifests/namespace.yaml @@ -14,6 +14,12 @@ # 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). +# +# #================================================================================== # # diff --git a/manifests/rtmgr/rtmgr-cfg.yaml b/manifests/rtmgr/rtmgr-cfg.yaml index 7d1d18f..262c5ab 100644 --- a/manifests/rtmgr/rtmgr-cfg.yaml +++ b/manifests/rtmgr/rtmgr-cfg.yaml @@ -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). +# #================================================================================== # # diff --git a/manifests/rtmgr/rtmgr-dep.yaml b/manifests/rtmgr/rtmgr-dep.yaml index 55b7176..1c013d9 100644 --- a/manifests/rtmgr/rtmgr-dep.yaml +++ b/manifests/rtmgr/rtmgr-dep.yaml @@ -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). +# #================================================================================== # # diff --git a/manifests/rtmgr/rtmgr-svc.yaml b/manifests/rtmgr/rtmgr-svc.yaml index 6ebb2a2..b6e5e8b 100644 --- a/manifests/rtmgr/rtmgr-svc.yaml +++ b/manifests/rtmgr/rtmgr-svc.yaml @@ -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). +# #================================================================================== # # diff --git a/pkg/nbi/httpgetter.go b/pkg/nbi/httpgetter.go index bdcc435..0bf05bc 100644 --- a/pkg/nbi/httpgetter.go +++ b/pkg/nbi/httpgetter.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). + ================================================================================== */ /* diff --git a/pkg/nbi/httpgetter_test.go b/pkg/nbi/httpgetter_test.go index 5c7082a..0dc65a2 100644 --- a/pkg/nbi/httpgetter_test.go +++ b/pkg/nbi/httpgetter_test.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). + ================================================================================== */ /* diff --git a/pkg/nbi/httprestful.go b/pkg/nbi/httprestful.go index a9aeaa2..9606288 100644 --- a/pkg/nbi/httprestful.go +++ b/pkg/nbi/httprestful.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). + ================================================================================== */ /* @@ -30,8 +35,6 @@ import ( "encoding/json" "errors" "fmt" - "github.com/go-openapi/loads" - "github.com/go-openapi/runtime/middleware" "net/url" "os" "routing-manager/pkg/models" @@ -43,6 +46,9 @@ import ( "routing-manager/pkg/sdl" "strconv" "time" + + "github.com/go-openapi/loads" + "github.com/go-openapi/runtime/middleware" ) //var myClient = &http.Client{Timeout: 1 * time.Second} diff --git a/pkg/nbi/httprestful_test.go b/pkg/nbi/httprestful_test.go index 99dbe74..b9d88c6 100644 --- a/pkg/nbi/httprestful_test.go +++ b/pkg/nbi/httprestful_test.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). + ================================================================================== */ /* @@ -27,7 +32,6 @@ package nbi import ( "encoding/json" "fmt" - "github.com/go-openapi/swag" "io/ioutil" "net" "net/http" @@ -38,6 +42,8 @@ import ( "routing-manager/pkg/stub" "testing" "time" + + "github.com/go-openapi/swag" ) var BasicXAppLists = []byte(`[ diff --git a/pkg/nbi/nbi.go b/pkg/nbi/nbi.go index 61c18c8..1d7d956 100644 --- a/pkg/nbi/nbi.go +++ b/pkg/nbi/nbi.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). + ================================================================================== */ /* @@ -26,15 +31,16 @@ package nbi import ( "errors" - httptransport "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" "net/url" apiclient "routing-manager/pkg/appmgr_client" "routing-manager/pkg/appmgr_client/operations" "routing-manager/pkg/appmgr_model" "routing-manager/pkg/rtmgr" "time" + + httptransport "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" ) var ( @@ -71,8 +77,8 @@ func GetNbi(nbiName string) (Engine, error) { func CreateSubReq(restUrl string, restPort string) *appmgr_model.SubscriptionRequest { // TODO: parameterize function subData := appmgr_model.SubscriptionData{ - TargetURL: swag.String(restUrl + ":" + restPort + "/ric/v1/handles/xapp-handle/"), - EventType: appmgr_model.EventTypeAll, + TargetURL: swag.String(restUrl + ":" + restPort + "/ric/v1/handles/xapp-handle/"), + EventType: appmgr_model.EventTypeAll, MaxRetries: swag.Int64(5), RetryTimer: swag.Int64(10), } diff --git a/pkg/nbi/nbi_test.go b/pkg/nbi/nbi_test.go index 15a121f..29e6ee3 100644 --- a/pkg/nbi/nbi_test.go +++ b/pkg/nbi/nbi_test.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). + ================================================================================== */ /* @@ -26,13 +31,14 @@ package nbi import ( "errors" - "github.com/go-openapi/swag" "net" "net/http" "net/http/httptest" "reflect" "routing-manager/pkg/appmgr_model" "testing" + + "github.com/go-openapi/swag" ) func TestGetNbi(t *testing.T) { @@ -62,9 +68,9 @@ func TestCreateSubReq(t *testing.T) { MaxRetries: swag.Int64(5), RetryTimer: swag.Int64(10), } - subReq := appmgr_model.SubscriptionRequest{ - Data: &subData, - } + subReq := appmgr_model.SubscriptionRequest{ + Data: &subData, + } subReq2 := CreateSubReq("localhost", "8000") if reflect.TypeOf(subReq) != reflect.TypeOf(*subReq2) { t.Errorf("Invalid type, got: %v, want: %v.", reflect.TypeOf(subReq), reflect.TypeOf(*subReq2)) diff --git a/pkg/nbi/types.go b/pkg/nbi/types.go index 049fe45..dd184d2 100644 --- a/pkg/nbi/types.go +++ b/pkg/nbi/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). + ================================================================================== */ /* diff --git a/pkg/rpe/rmr.go b/pkg/rpe/rmr.go index dba8db6..cb311a8 100644 --- a/pkg/rpe/rmr.go +++ b/pkg/rpe/rmr.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). + ================================================================================== */ /* diff --git a/pkg/rpe/rmr_test.go b/pkg/rpe/rmr_test.go index 7ba59a6..bd42d0b 100644 --- a/pkg/rpe/rmr_test.go +++ b/pkg/rpe/rmr_test.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). + ================================================================================== */ /* diff --git a/pkg/rpe/rpe.go b/pkg/rpe/rpe.go index e47ca83..9a36564 100644 --- a/pkg/rpe/rpe.go +++ b/pkg/rpe/rpe.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). + ================================================================================== */ /* @@ -28,8 +33,8 @@ import ( "errors" "routing-manager/pkg/rtmgr" "routing-manager/pkg/sbi" - "strconv" "runtime" + "strconv" ) var ( @@ -85,20 +90,20 @@ func (r *Rpe) addRoute(messageType string, tx *rtmgr.Endpoint, rx *rtmgr.Endpoin rxList := []rtmgr.EndpointList{[]rtmgr.Endpoint{*rx}} messageId := rtmgr.MessageTypes[messageType] route := rtmgr.RouteTableEntry{ - MessageType: messageId, - TxList: txList, - RxGroups: rxList, - SubID: subId} - *routeTable = append(*routeTable, route) - rtmgr.Logger.Debug("Route added: MessageTyp: %v, Tx: %v, Rx: %v, SubId: %v", messageId, tx.Uuid, rx.Uuid, subId) - rtmgr.Logger.Trace("Route added: MessageTyp: %v, Tx: %v, Rx: %v, SubId: %v", messageId, tx, rx, subId) - } else { - pc,_,_,ok := runtime.Caller(1) - details := runtime.FuncForPC(pc) - if ok && details != nil { - rtmgr.Logger.Error("Route addition skipped: Either TX or RX endpoint not present. Caller function is %s", details.Name()) - } + MessageType: messageId, + TxList: txList, + RxGroups: rxList, + SubID: subId} + *routeTable = append(*routeTable, route) + rtmgr.Logger.Debug("Route added: MessageTyp: %v, Tx: %v, Rx: %v, SubId: %v", messageId, tx.Uuid, rx.Uuid, subId) + rtmgr.Logger.Trace("Route added: MessageTyp: %v, Tx: %v, Rx: %v, SubId: %v", messageId, tx, rx, subId) + } else { + pc, _, _, ok := runtime.Caller(1) + details := runtime.FuncForPC(pc) + if ok && details != nil { + rtmgr.Logger.Error("Route addition skipped: Either TX or RX endpoint not present. Caller function is %s", details.Name()) } + } } func (r *Rpe) generateXappRoutes(xAppEp *rtmgr.Endpoint, e2TermEp *rtmgr.Endpoint, subManEp *rtmgr.Endpoint, routeTable *rtmgr.RouteTable) { diff --git a/pkg/rpe/types.go b/pkg/rpe/types.go index 491d152..626213e 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). + ================================================================================== */ /* diff --git a/pkg/rtmgr/rtmgr.go b/pkg/rtmgr/rtmgr.go index 7476666..83af71a 100644 --- a/pkg/rtmgr/rtmgr.go +++ b/pkg/rtmgr/rtmgr.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* @@ -27,10 +31,11 @@ package rtmgr import ( "encoding/json" "errors" - "github.com/jcelliott/lumber" "io/ioutil" "os" "strings" + + "github.com/jcelliott/lumber" ) var ( @@ -38,62 +43,62 @@ var ( // CamelCase Message Types are for being able to test with old fashioned admin control xApps // TODO: Add a separate message definition file (Not using the one from RMR to not create dependency on that library). MessageTypes = map[string]string{ - "HandoverPreparation": "0", - "HandoverCancel": "1", - "LoadIndication": "2", - "ErrorIndication": "3", - "SNStatusTransfer": "4", - "UEContextRelease": "5", - "X2Setup": "6", - "Reset": "7", - "E2_TERM_INIT": "1100", - "RAN_CONNECTED": "1200", - "RAN_RESTARTED": "1210", - "RAN_RECONFIGURED": "1220", - "RIC_SCTP_CLEAR_ALL": "1090", - "RIC_SCTP_CONNECTION_FAILURE": "1080", - "RIC_X2_SETUP": "10000", - "RIC_X2_RESPONSE": "10001", - "RIC_X2_RESOURCE_STATUS_REQUEST": "10002", - "RIC_X2_RESOURCE_STATUS_RESPONSE": "10003", - "RIC_X2_LOAD_INFORMATION": "10004", - "RIC_E2_TERMINATION_HC_REQUEST": "10005", - "RIC_E2_TERMINATION_HC_RESPONSE": "10006", - "RIC_E2_MANAGER_HC_REQUEST": "10007", - "RIC_E2_MANAGER_HC_RESPONSE": "10008", - "RIC_ENB_LOAD_INFORMATION": "10020", - "RIC_ERROR_INDICATION": "10030", - "RIC_X2_SETUP_REQ": "10060", - "RIC_X2_SETUP_RESP": "10061", - "RIC_X2_SETUP_FAILURE": "10062", - "RIC_X2_RESET_REQ": "10070", - "RIC_X2_RESET_RESP": "10071", - "RIC_ENB_CONF_UPDATE": "10080", - "RIC_ENB_CONF_UPDATE_ACK": "10081", - "RIC_ENB_CONF_UPDATE_FAILURE": "10082", - "RIC_RES_STATUS_REQ": "10090", - "RIC_RES_STATUS_RESP": "10091", - "RIC_RES_STATUS_FAILURE": "10092", - "RIC_RESOURCE_STATUS_UPDATE": "10100", - "RIC_ENDC_X2_SETUP_REQ": "10360", - "RIC_ENDC_X2_SETUP_RESP": "10361", - "RIC_ENDC_X2_SETUP_FAILURE": "10362", - "RIC_ENDC_CONF_UPDATE": "10370", - "RIC_ENDC_CONF_UPDATE_ACK": "10371", - "RIC_ENDC_CONF_UPDATE_FAILURE": "10372", - "RIC_GNB_STATUS_INDICATION": "10450", - "RIC_SUB_REQ": "12010", - "RIC_SUB_RESP": "12011", - "RIC_SUB_FAILURE": "12012", - "RIC_SUB_DEL_REQ": "12020", - "RIC_SUB_DEL_RESP": "12021", - "RIC_SUB_DEL_FAILURE": "12022", - "RIC_CONTROL_REQ": "12040", - "RIC_CONTROL_ACK": "12041", - "RIC_CONTROL_FAILURE": "12042", - "RIC_INDICATION": "12050", - "DC_ADM_INT_CONTROL": "20000", - "DC_ADM_INT_CONTROL_ACK": "20001", + "HandoverPreparation": "0", + "HandoverCancel": "1", + "LoadIndication": "2", + "ErrorIndication": "3", + "SNStatusTransfer": "4", + "UEContextRelease": "5", + "X2Setup": "6", + "Reset": "7", + "E2_TERM_INIT": "1100", + "RAN_CONNECTED": "1200", + "RAN_RESTARTED": "1210", + "RAN_RECONFIGURED": "1220", + "RIC_SCTP_CLEAR_ALL": "1090", + "RIC_SCTP_CONNECTION_FAILURE": "1080", + "RIC_X2_SETUP": "10000", + "RIC_X2_RESPONSE": "10001", + "RIC_X2_RESOURCE_STATUS_REQUEST": "10002", + "RIC_X2_RESOURCE_STATUS_RESPONSE": "10003", + "RIC_X2_LOAD_INFORMATION": "10004", + "RIC_E2_TERMINATION_HC_REQUEST": "10005", + "RIC_E2_TERMINATION_HC_RESPONSE": "10006", + "RIC_E2_MANAGER_HC_REQUEST": "10007", + "RIC_E2_MANAGER_HC_RESPONSE": "10008", + "RIC_ENB_LOAD_INFORMATION": "10020", + "RIC_ERROR_INDICATION": "10030", + "RIC_X2_SETUP_REQ": "10060", + "RIC_X2_SETUP_RESP": "10061", + "RIC_X2_SETUP_FAILURE": "10062", + "RIC_X2_RESET_REQ": "10070", + "RIC_X2_RESET_RESP": "10071", + "RIC_ENB_CONF_UPDATE": "10080", + "RIC_ENB_CONF_UPDATE_ACK": "10081", + "RIC_ENB_CONF_UPDATE_FAILURE": "10082", + "RIC_RES_STATUS_REQ": "10090", + "RIC_RES_STATUS_RESP": "10091", + "RIC_RES_STATUS_FAILURE": "10092", + "RIC_RESOURCE_STATUS_UPDATE": "10100", + "RIC_ENDC_X2_SETUP_REQ": "10360", + "RIC_ENDC_X2_SETUP_RESP": "10361", + "RIC_ENDC_X2_SETUP_FAILURE": "10362", + "RIC_ENDC_CONF_UPDATE": "10370", + "RIC_ENDC_CONF_UPDATE_ACK": "10371", + "RIC_ENDC_CONF_UPDATE_FAILURE": "10372", + "RIC_GNB_STATUS_INDICATION": "10450", + "RIC_SUB_REQ": "12010", + "RIC_SUB_RESP": "12011", + "RIC_SUB_FAILURE": "12012", + "RIC_SUB_DEL_REQ": "12020", + "RIC_SUB_DEL_RESP": "12021", + "RIC_SUB_DEL_FAILURE": "12022", + "RIC_CONTROL_REQ": "12040", + "RIC_CONTROL_ACK": "12041", + "RIC_CONTROL_FAILURE": "12042", + "RIC_INDICATION": "12050", + "DC_ADM_INT_CONTROL": "20000", + "DC_ADM_INT_CONTROL_ACK": "20001", "RIC_CONTROL_XAPP_CONFIG_REQUEST": "100000", "RIC_CONTROL_XAPP_CONFIG_RESPONSE": "100001", } @@ -132,7 +137,7 @@ func SetLogLevel(loglevel string) error { case "TRACE": Logger.Info("Trace mode") Logger.Level(lumber.TRACE) - return nil + return nil default: Logger.Error("invalid log mode, setting info") Logger.Level(lumber.INFO) diff --git a/pkg/rtmgr/rtmgr_test.go b/pkg/rtmgr/rtmgr_test.go index da7d7b8..2f02b99 100644 --- a/pkg/rtmgr/rtmgr_test.go +++ b/pkg/rtmgr/rtmgr_test.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/rtmgr/types.go b/pkg/rtmgr/types.go index 26429ce..9674a5d 100644 --- a/pkg/rtmgr/types.go +++ b/pkg/rtmgr/types.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/sbi/nngpush.go b/pkg/sbi/nngpush.go index 1f062d3..6e3e225 100644 --- a/pkg/sbi/nngpush.go +++ b/pkg/sbi/nngpush.go @@ -14,6 +14,10 @@ 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,11 +30,12 @@ package sbi import ( "errors" + "routing-manager/pkg/rtmgr" + "strconv" + "nanomsg.org/go/mangos/v2" "nanomsg.org/go/mangos/v2/protocol/push" _ "nanomsg.org/go/mangos/v2/transport/all" - "routing-manager/pkg/rtmgr" - "strconv" ) type NngPush struct { diff --git a/pkg/sbi/nngpush_test.go b/pkg/sbi/nngpush_test.go index 422a036..d7a6572 100644 --- a/pkg/sbi/nngpush_test.go +++ b/pkg/sbi/nngpush_test.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/sbi/sbi.go b/pkg/sbi/sbi.go index 0d13bb9..7d07160 100644 --- a/pkg/sbi/sbi.go +++ b/pkg/sbi/sbi.go @@ -15,6 +15,10 @@ w 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). + ================================================================================== */ /* diff --git a/pkg/sbi/sbi_test.go b/pkg/sbi/sbi_test.go index feba821..ee8671f 100644 --- a/pkg/sbi/sbi_test.go +++ b/pkg/sbi/sbi_test.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/sbi/types.go b/pkg/sbi/types.go index d0a98ab..d024e94 100644 --- a/pkg/sbi/types.go +++ b/pkg/sbi/types.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/sdl/file.go b/pkg/sdl/file.go index 2d49be7..90b1ed0 100644 --- a/pkg/sdl/file.go +++ b/pkg/sdl/file.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/sdl/sdl.go b/pkg/sdl/sdl.go index f7d1bc4..88b19e7 100644 --- a/pkg/sdl/sdl.go +++ b/pkg/sdl/sdl.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/sdl/sdl_test.go b/pkg/sdl/sdl_test.go index 83708d2..2d5d9db 100644 --- a/pkg/sdl/sdl_test.go +++ b/pkg/sdl/sdl_test.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/sdl/types.go b/pkg/sdl/types.go index 3551699..49e3e8b 100644 --- a/pkg/sdl/types.go +++ b/pkg/sdl/types.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/stub/mangos.go b/pkg/stub/mangos.go index bdc82c4..e795c9f 100644 --- a/pkg/stub/mangos.go +++ b/pkg/stub/mangos.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/pkg/stub/stub.go b/pkg/stub/stub.go index 3c10859..f57f70e 100644 --- a/pkg/stub/stub.go +++ b/pkg/stub/stub.go @@ -14,6 +14,10 @@ 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). + ================================================================================== */ /* diff --git a/run_rtmgr.sh b/run_rtmgr.sh index 7976b6c..4ea5349 100644 --- a/run_rtmgr.sh +++ b/run_rtmgr.sh @@ -15,6 +15,10 @@ # 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). +# #================================================================================== # # -- 2.16.6