Change in osmo-ttcn3-hacks[master]: library/Osmocom_VTY_Functions: make VTY prompt timeout configurable

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Jan 30 14:07:44 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22548 )

Change subject: library/Osmocom_VTY_Functions: make VTY prompt timeout configurable
......................................................................

library/Osmocom_VTY_Functions: make VTY prompt timeout configurable

Change-Id: Iadec95446b98d9767d08a841fa1c28f8c71c5eea
---
M library/Osmocom_VTY_Functions.ttcn
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn
index a9f4c24..9410c9e 100644
--- a/library/Osmocom_VTY_Functions.ttcn
+++ b/library/Osmocom_VTY_Functions.ttcn
@@ -15,6 +15,7 @@
 
 	modulepar {
 		charstring mp_prompt_prefix := "OpenBSC";
+		float mp_prompt_timeout := 2.0;
 	}
 
 	const charstring VTY_VIEW_SUFFIX := "> ";
@@ -60,9 +61,9 @@
 	return charstring {
 		var charstring rx, buf := "";
 		var integer fd;
-		timer T := 2.0;
+		timer T;
 
-		T.start;
+		T.start(mp_prompt_timeout);
 		alt {
 		[] pt.receive(pattern "[\w-]+" & VTY_VIEW_SUFFIX) { };
 		[] pt.receive(pattern "[\w-]+\# ") { };

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22548
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: Iadec95446b98d9767d08a841fa1c28f8c71c5eea
Gerrit-Change-Number: 22548
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210130/b2aa5970/attachment.htm>


More information about the gerrit-log mailing list