<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22548">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">library/Osmocom_VTY_Functions: make VTY prompt timeout configurable<br><br>Change-Id: Iadec95446b98d9767d08a841fa1c28f8c71c5eea<br>---<br>M library/Osmocom_VTY_Functions.ttcn<br>1 file changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/48/22548/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn</span><br><span>index a9f4c24..9410c9e 100644</span><br><span>--- a/library/Osmocom_VTY_Functions.ttcn</span><br><span>+++ b/library/Osmocom_VTY_Functions.ttcn</span><br><span>@@ -15,6 +15,7 @@</span><br><span> </span><br><span>      modulepar {</span><br><span>          charstring mp_prompt_prefix := "OpenBSC";</span><br><span style="color: hsl(120, 100%, 40%);">+           float mp_prompt_timeout := 2.0;</span><br><span>      }</span><br><span> </span><br><span>        const charstring VTY_VIEW_SUFFIX := "> ";</span><br><span>@@ -60,9 +61,9 @@</span><br><span>   return charstring {</span><br><span>          var charstring rx, buf := "";</span><br><span>              var integer fd;</span><br><span style="color: hsl(0, 100%, 40%);">-         timer T := 2.0;</span><br><span style="color: hsl(120, 100%, 40%);">+               timer T;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-            T.start;</span><br><span style="color: hsl(120, 100%, 40%);">+              T.start(mp_prompt_timeout);</span><br><span>          alt {</span><br><span>                [] pt.receive(pattern "[\w-]+" & VTY_VIEW_SUFFIX) { };</span><br><span>                 [] pt.receive(pattern "[\w-]+\# ") { };</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22548">change 22548</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22548"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iadec95446b98d9767d08a841fa1c28f8c71c5eea </div>
<div style="display:none"> Gerrit-Change-Number: 22548 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>