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
[RIC-432] - Support Update eNB REST API. kubernetes removed and nodebValidator added
[ric-plt/e2mgr.git]
/
E2Manager
/
handlers
/
httpmsghandlers
/
x2_reset_request_handler.go
diff --git
a/E2Manager/handlers/httpmsghandlers/x2_reset_request_handler.go
b/E2Manager/handlers/httpmsghandlers/x2_reset_request_handler.go
index
755984e
..
c8fd494
100644
(file)
--- a/
E2Manager/handlers/httpmsghandlers/x2_reset_request_handler.go
+++ b/
E2Manager/handlers/httpmsghandlers/x2_reset_request_handler.go
@@
-13,7
+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.
// 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 httpmsghandlers
package httpmsghandlers
@@
-27,6
+30,7
@@
import (
"e2mgr/services/rmrsender"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
"e2mgr/services/rmrsender"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
+ "unsafe"
)
const (
)
const (
@@
-78,7
+82,9
@@
func (handler *X2ResetRequestHandler) Handle(request models.Request) (models.IRe
return nil, e2managererrors.NewWrongStateError(X2_RESET_ACTIVITY_NAME, entities.ConnectionStatus_name[int32(nodeb.ConnectionStatus)])
}
return nil, e2managererrors.NewWrongStateError(X2_RESET_ACTIVITY_NAME, entities.ConnectionStatus_name[int32(nodeb.ConnectionStatus)])
}
- msg := models.NewRmrMessage(rmrCgo.RIC_X2_RESET, resetRequest.RanName, payload)
+ var xAction []byte
+ var msgSrc unsafe.Pointer
+ msg := models.NewRmrMessage(rmrCgo.RIC_X2_RESET, resetRequest.RanName, payload, xAction, msgSrc)
err = handler.rmrSender.Send(msg)
err = handler.rmrSender.Send(msg)