laforge has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21470 )
Change subject: BSSGP_Emulation: Add RIM port to BSSGP_CT
......................................................................
BSSGP_Emulation: Add RIM port to BSSGP_CT
This port is used for sending/receiving RIM related BSSGP messages. It
exists once per BSSGP_CT Component (i.e. once per NSE), as RIM is global
for the entire NSE.
Change-Id: I04511df5dffbfe19faabf22014acc72b7673b7d6
---
M library/BSSGP_Emulation.ttcnpp
1 file changed, 20 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
dexter: Looks good to me, approved
diff --git a/library/BSSGP_Emulation.ttcnpp b/library/BSSGP_Emulation.ttcnpp
index e3ad9fe..0aa27e6 100644
--- a/library/BSSGP_Emulation.ttcnpp
+++ b/library/BSSGP_Emulation.ttcnpp
@@ -237,6 +237,9 @@
* (currently only) SUSPEND/RESUME */
port BSSGP_SP_PT GLOBAL;
+ /* RAN INFORMATION MGMT */
+ port BSSGP_SP_PT RIM;
+
/* port to a management instance */
port BSSGP_BVC_MGMT_SP_PT MGMT;
@@ -305,6 +308,13 @@
{pDU_BSSGP_SGSN_INVOKE_TRACE:=?}, {pDU_BSSGP_OVERLOAD:=?}
);
+/* BSSGP messages that should arrive on the RIM port */
+private template PDU_BSSGP tr_RIM := (
+ {pDU_BSSGP_RAN_INFORMATION:=?}, {pDU_BSSGP_RAN_INFORMATION_REQUEST:=?},
+ {pDU_BSSGP_RAN_INFORMATION_ACK:=?},
{pDU_BSSGP_RAN_INFORMATION_ERROR:=?},
+ {pDU_BSSGP_RAN_INFORMATION_APPLICATION_ERROR:=?}
+);
+
/* We are in BVC_S_UNBLOCKED state */
altstep as_sig_unblocked() runs on BSSGP_CT {
var BSSGP_BVC_CT bvc_comp_ref;
@@ -329,6 +339,11 @@
[] BSCP.receive(f_BnsUdInd(tr_GLOBAL, 0)) -> value udi {
GLOBAL.send(udi.bssgp);
}
+ [] BSCP.receive(f_BnsUdInd(tr_RIM, 0)) -> value udi {
+ if (RIM.checkstate("Connected")) {
+ RIM.send(udi.bssgp);
+ }
+ }
/* Route based on PTP BVCI in payload/IE of signaling PDU */
[] BSCP.receive(f_BnsUdInd(?, 0)) -> value udi {
@@ -381,6 +396,11 @@
[] GLOBAL.receive(tr_GLOBAL) -> value bssgp {
BSCP.send(f_BnsUdReq(bssgp, 0, 0));
}
+
+ [] RIM.receive(tr_RIM) -> value bssgp {
+ BSCP.send(f_BnsUdReq(bssgp, 0, 0));
+ }
+
}
/* We are in BVC_S_WAIT_NS_ALIVE_UNBLOCKED (only happens in BSS role) */
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21470
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I04511df5dffbfe19faabf22014acc72b7673b7d6
Gerrit-Change-Number: 21470
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <[email protected]>
Gerrit-Assignee: dexter <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged