Merge "Added E2AP interface wrapper for UT"
authorAnssi Mannila <anssi.mannila@nokia.com>
Tue, 25 May 2021 08:44:49 +0000 (08:44 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Tue, 25 May 2021 08:44:49 +0000 (08:44 +0000)
1  2 
pkg/control/e2ap.go

diff --combined pkg/control/e2ap.go
@@@ -27,6 -27,7 +27,7 @@@ import "C
  import (
        "encoding/hex"
        "fmt"
        "gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/e2ap"
        "gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/e2ap_wrapper"
        "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/models"
  
  var packerif e2ap.E2APPackerIf = e2ap_wrapper.NewAsn1E2Packer()
  
+ func GetPackerIf() e2ap.E2APPackerIf {
+       return packerif
+ }
+ func SetPackerIf(iface e2ap.E2APPackerIf) {
+       packerif = iface
+ }
  type E2ap struct {
  }
  
@@@ -199,7 -208,6 +208,7 @@@ func (c *E2ap) UnpackSubscriptionDelete
        return subDelFail, nil
  }
  
 +/*
  func (c *E2ap) PackSubscriptionDeleteFailure(req *e2ap.E2APSubscriptionDeleteFailure) (int, *e2ap.PackedData, error) {
        e2SubDelFail := packerif.NewPackerSubscriptionDeleteFailure()
        err, packedData := e2SubDelFail.Pack(req)
        }
        return xapp.RIC_SUB_DEL_FAILURE, packedData, nil
  }
 +*/