pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-uecups/+/40761?usp=email )
Change subject: ttcn3: UECUPS_Types: Add templates for existing json commands
......................................................................
ttcn3: UECUPS_Types: Add templates for existing json commands
Related: SYS#7073
Change-Id: If524b0a122d1217fcd39e4633835a1a7d0620c7a
---
M ttcn3/UECUPS_Types.ttcn
1 file changed, 39 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-uecups refs/changes/61/40761/1
diff --git a/ttcn3/UECUPS_Types.ttcn b/ttcn3/UECUPS_Types.ttcn
index bbd849f..2e6686b 100644
--- a/ttcn3/UECUPS_Types.ttcn
+++ b/ttcn3/UECUPS_Types.ttcn
@@ -128,5 +128,44 @@
Port := Port
}
+template (value) UECUPS_CreateTun
+ts_UECUPS_CreateTun(template (value) uint32_t tx_teid,
+ template (value) uint32_t rx_teid,
+ template (value) UECUPS_AddrType user_addr_type,
+ template (value) OCT4_16n user_addr,
+ template (value) UECUPS_SockAddr local_gtp_ep,
+ template (value) UECUPS_SockAddr remote_gtp_ep,
+ template (value) charstring tun_dev_name := "tun",
+ template (omit) charstring tun_netns_name := omit)
+:= {
+ tx_teid := tx_teid,
+ rx_teid := rx_teid,
+ user_addr_type := user_addr_type,
+ user_addr := user_addr,
+ local_gtp_ep := local_gtp_ep,
+ remote_gtp_ep := remote_gtp_ep,
+ tun_dev_name := tun_dev_name,
+ tun_netns_name := tun_netns_name
+};
+
+template (value) UECUPS_DestroyTun
+ts_UECUPS_DestroyTun(template (value) UECUPS_SockAddr local_gtp_ep,
+ template (value) uint32_t rx_teid)
+:= {
+ local_gtp_ep := local_gtp_ep,
+ rx_teid := rx_teid
+};
+
+template (value) UECUPS_StartProgram
+ts_UECUPS_StartProgram(template (value) charstring command,
+ template (omit) charstring_list environment := omit,
+ template (value) charstring run_as_user := "root",
+ template (omit) charstring tun_netns_name := omit)
+:= {
+ command := command,
+ environment := environment,
+ run_as_user := run_as_user,
+ tun_netns_name := tun_netns_name
+};
} with { encode "JSON" };
--
To view, visit
https://gerrit.osmocom.org/c/osmo-uecups/+/40761?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-uecups
Gerrit-Branch: master
Gerrit-Change-Id: If524b0a122d1217fcd39e4633835a1a7d0620c7a
Gerrit-Change-Number: 40761
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>