Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update release version to 4.4.2
[ric-plt/e2mgr.git]
/
E2Manager
/
managers
/
x2_setup_failure_response_manager.go
diff --git
a/E2Manager/managers/x2_setup_failure_response_manager.go
b/E2Manager/managers/x2_setup_failure_response_manager.go
index
f30c394
..
faaa892
100644
(file)
--- a/
E2Manager/managers/x2_setup_failure_response_manager.go
+++ b/
E2Manager/managers/x2_setup_failure_response_manager.go
@@
-13,26
+13,32
@@
// 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.
// 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).
+
package managers
import (
"e2mgr/converters"
package managers
import (
"e2mgr/converters"
- "e2mgr/e2pdus"
"e2mgr/logger"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
)
"e2mgr/logger"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
)
-type X2SetupFailureResponseManager struct{}
+type X2SetupFailureResponseManager struct {
+ converter converters.IX2SetupFailureResponseConverter
+}
-func NewX2SetupFailureResponseManager() *X2SetupFailureResponseManager {
- return &X2SetupFailureResponseManager{}
+func NewX2SetupFailureResponseManager(converter converters.IX2SetupFailureResponseConverter) *X2SetupFailureResponseManager {
+ return &X2SetupFailureResponseManager{
+ converter: converter,
+ }
}
func (m *X2SetupFailureResponseManager) PopulateNodebByPdu(logger *logger.Logger, nbIdentity *entities.NbIdentity, nodebInfo *entities.NodebInfo, payload []byte) error {
}
func (m *X2SetupFailureResponseManager) PopulateNodebByPdu(logger *logger.Logger, nbIdentity *entities.NbIdentity, nodebInfo *entities.NodebInfo, payload []byte) error {
- failureResponse, err :=
converters.UnpackX2SetupFailureResponseAndExtract(logger, e2pdus.MaxAsn1CodecAllocationBufferSize, len(payload), payload, e2pdus.MaxAsn1CodecMessageBufferSize
)
+ failureResponse, err :=
m.converter.UnpackX2SetupFailureResponseAndExtract(payload
)
if err != nil {
logger.Errorf("#X2SetupFailureResponseManager.PopulateNodebByPdu - RAN name: %s - Unpack and extract failed. Error: %v", nodebInfo.RanName, err)
if err != nil {
logger.Errorf("#X2SetupFailureResponseManager.PopulateNodebByPdu - RAN name: %s - Unpack and extract failed. Error: %v", nodebInfo.RanName, err)