diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-09-05 11:13:56 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-09-05 12:44:13 +0200 |
commit | b522323cbb6806ccb9d9c003a790a721d7a885eb (patch) | |
tree | 0f01e2dcfa5bf1e7b02c68531c8d3ad8fe80072b /library | |
parent | 908ce54531df42a725482ad91fc6a0d660c74022 (diff) |
CBSP: Hack to make receive templates work
For some reason, the 'ifpresent' annotation doesn't work in lists
of templates. This means we have to re-think the CBSP template
structure at some point. However, this would be a significant detour
and I'd rather have working tests right now, so we can verify the
actual functionality merged into the BSC right now.
Change-Id: I3fa174b4352c17feaea4d33f773877104d4913c4
Diffstat (limited to 'library')
-rw-r--r-- | library/CBSP_Templates.ttcn | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/CBSP_Templates.ttcn b/library/CBSP_Templates.ttcn index 3c60f14b..86eaf69d 100644 --- a/library/CBSP_Templates.ttcn +++ b/library/CBSP_Templates.ttcn @@ -454,7 +454,7 @@ return template CBSP_PDU { tr_CbspFailList(fail_list) }; if (istemplatekind(compl_list, "*")) { - ies[lengthof(ies)] := tr_CbspNumComplList ifpresent; + //ies[lengthof(ies)] := tr_CbspNumComplList ifpresent; } else if (istemplatekind(compl_list, "?")) { ies[lengthof(ies)] := tr_CbspNumComplList(?); } else if (not istemplatekind(compl_list, "omit")) { @@ -507,14 +507,14 @@ return template CBSP_PDU { tr_CbspFailList(fail_list) }; if (istemplatekind(compl_list, "*")) { - ies[lengthof(ies)] := tr_CbspCellList ifpresent; + //ies[lengthof(ies)] := tr_CbspCellList ifpresent; } else if (istemplatekind(compl_list, "?")) { ies[lengthof(ies)] := tr_CbspNumComplList(?); } else if (not istemplatekind(compl_list, "omit")) { ies[lengthof(ies)] := tr_CbspNumComplList(compl_list); } if (istemplatekind(cell_list, "*")) { - ies[lengthof(ies)] := tr_CbspCellList ifpresent; + //ies[lengthof(ies)] := tr_CbspCellList ifpresent; } else if (istemplatekind(cell_list, "?")) { ies[lengthof(ies)] := tr_CbspCellList(?); } else if (not istemplatekind(cell_list, "omit")) { @@ -626,12 +626,12 @@ return template CBSP_PDU { tr_CbspFailList(fail_list) }; if (istemplatekind(compl_list, "*")) { - ies[lengthof(ies)] := tr_CbspNumComplList ifpresent; + //ies[lengthof(ies)] := tr_CbspNumComplList ifpresent; } else if (not istemplatekind(compl_list, "omit")) { ies[lengthof(ies)] := tr_CbspNumComplList(compl_list); } if (istemplatekind(compl_list, "*")) { - ies[lengthof(ies)] := tr_CbspCellList ifpresent; + //ies[lengthof(ies)] := tr_CbspCellList ifpresent; } else if (not istemplatekind(cell_list, "omit")) { ies[lengthof(ies)] := tr_CbspCellList(cell_list); } |