stp: Refactor STP_Tests_IPA tests and introduce new TC_tmt_loadshare
Infrastructure in STP_Tests_IPA changed to be more similar to what is
done in STP_Tests_M3UA, which already contain more advanced tests.
Array of AS names mp_ipa_as_names is added in order to let TTCN3 port
which AS is configured in STP for each src port.
Change-Id: Iae213c58598cc0207503fd10f09d2d57aab941fe
diff --git a/stp/osmo-stp.cfg b/stp/osmo-stp.cfg
index 5a1741f..26ab7f6 100644
--- a/stp/osmo-stp.cfg
+++ b/stp/osmo-stp.cfg
@@ -36,6 +36,9 @@
!
cs7 instance 0
point-code format 24
+!
+!M3UA AS/ASP:
+!
asp asp-sender 9999 2905 m3ua
local-ip 127.0.0.1
remote-ip 127.0.0.1
@@ -57,16 +60,47 @@
asp asp-receiver0
asp asp-receiver1
routing-key 1042 42
- as mahlzeit ipa
- routing-key 0 5
- point-code override dpc 23
as as-client m3ua
routing-key 1055 55
asp asp-client0
+!
+! IPA AS/ASP:
+!
+ asp ipa-asp-loadshare-sender 20000 5000 ipa
+ local-ip 127.0.0.1
+ remote-ip 127.0.0.1
+ as ipa-as-loadshare-sender ipa
+ routing-key 0 6
+ point-code override dpc 31
+ asp ipa-asp-loadshare-sender
+ asp ipa-asp-loadshare-receiver0 20001 5000 ipa
+ local-ip 127.0.0.1
+ remote-ip 127.0.0.1
+ asp ipa-asp-loadshare-receiver1 20002 5000 ipa
+ local-ip 127.0.0.1
+ remote-ip 127.0.0.1
+ as ipa-as-loadshare-receiver ipa
+ traffic-mode loadshare
+ routing-key 0 7
+ point-code override dpc 32
+ asp ipa-asp-loadshare-receiver0
+ asp ipa-asp-loadshare-receiver1
+ !Used by STP_Tests.ttcn:
+ as ipa-as-dynamic-asp ipa
+ routing-key 0 5
+ point-code override dpc 23
+!
+! ROUTING TABLE:
+!
route-table system
update route 23 16777215 linkset as-sender
update route 42 16777215 linkset as-receiver
update route 55 16777215 linkset as-client
+ update route 31 16777215 linkset ipa-as-loadshare-receiver
+ update route 5 16777215 linkset ipa-as-dynamic-asp
+!
+!SERVERS:
+!
listen m3ua 2905
accept-asp-connections dynamic-permitted
listen ipa 5000