NS_Emulation: Move SNS handling from NS-VC to NS-VCG
We need to move the IP-SNS handling up one layer, as only the NS-VCG
knows all the other NS-VCs, and after the SNS-CONFIG-ACK, we must
mark all of our NS-VCs as alive and start the alive procedure.
Related: OS#4953
Change-Id: Ie0f4342a0346952d7c50ac36900148e311d4c782
diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn
index f97b9b0..9065097 100644
--- a/library/Osmocom_Gb_Types.ttcn
+++ b/library/Osmocom_Gb_Types.ttcn
@@ -531,6 +531,10 @@
var template ListofIP4Elements r;
if (istemplatekind(elem, "omit")) {
return omit;
+ } else if (istemplatekind(elem, "*")) {
+ return *;
+ } else if (istemplatekind(elem, "?")) {
+ return ?;
} else {
r := {
iEI := '05'O,
@@ -568,6 +572,8 @@
return omit;
} else if (istemplatekind(elem, "*")) {
return *;
+ } else if (istemplatekind(elem, "?")) {
+ return ?;
} else {
r := {
iEI := '06'O,
@@ -722,6 +728,14 @@
}
}
+ template PDU_NS tr_SNS(template Nsei nsei) := ( tr_SNS_SIZE(nsei),
+ tr_SNS_SIZE_ACK(nsei, *),
+ tr_SNS_CONFIG(nsei, ?, *, *),
+ tr_SNS_CONFIG_ACK(nsei, *),
+ tr_SNS_ADD(nsei, ?, *, *),
+ tr_SNS_DEL(nsei, ?, *, *),
+ tr_SNS_CHG_WEIGHT(nsei, ?, *, *),
+ tr_SNS_ACK(nsei, ?, *, *, *) )