Bug #3675 » vty_debug_v2.patch
library/Osmocom_VTY_Functions.ttcn | ||
---|---|---|
51 | 51 | |
52 | 52 |
T.start; |
53 | 53 |
alt { |
54 |
[] pt.receive(pattern "\w+" & VTY_VIEW_SUFFIX) { };
|
|
55 |
[] pt.receive(pattern "\w+\# ") { };
|
|
56 |
[] pt.receive(pattern "\w+" & VTY_CFG_SUFFIX) { };
|
|
54 |
[] pt.receive(pattern "\w+" & VTY_VIEW_SUFFIX) -> value rx { log("> VIEW " & rx); };
|
|
55 |
[] pt.receive(pattern "\w+\# ") -> value rx { log("> ENABLE " & rx); };
|
|
56 |
[] pt.receive(pattern "\w+" & VTY_CFG_SUFFIX) -> value rx { log("> CONFIG " & rx); };
|
|
57 | 57 |
[] pt.receive(t_vty_unknown) { |
58 | 58 |
testcase.stop(fail, "VTY: Unknown Command"); |
59 | 59 |
}; |
... | ... | |
77 | 77 | |
78 | 78 |
/* send a VTY command and obtain response until prompt is received */ |
79 | 79 |
function f_vty_transceive_ret(TELNETasp_PT pt, charstring tx) return charstring { |
80 |
log("Sending VTY: " & tx) |
|
80 | 81 |
pt.send(tx); |
81 | 82 |
return f_vty_wait_for_prompt(pt); |
82 | 83 |
} |
- « Previous
- 1
- …
- 4
- 5
- 6
- Next »