Skip to content

Commit

Permalink
Add service model data struct to e2sm API (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
adibrastegarnia authored Mar 23, 2021
1 parent 60c4cd6 commit 60fae71
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
8 changes: 6 additions & 2 deletions go/onos/e2t/e2sm/ranfunction.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package types

type ShortName string

type Oid string
type OID string

type Description string

Expand All @@ -28,9 +28,13 @@ type StyleName string

type FormatType int32

type Version string

type ModuleName string

type RanfunctionNameDef struct {
RanFunctionShortName ShortName
RanFunctionE2SmOid Oid
RanFunctionE2SmOid OID
RanFunctionDescription Description
RanFunctionInstance Instance
}
Expand Down
23 changes: 23 additions & 0 deletions go/onos/e2t/e2sm/service_model_data.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2020-present Open Networking Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// 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.

package types

// ServiceModelData service model related information
type ServiceModelData struct {
Name ShortName
Version Version
ModuleName ModuleName
OID OID
}

0 comments on commit 60fae71

Please sign in to comment.