Project

General

Profile

Bug #3675 » vty_debug_v2.patch

fixeria, 10/28/2018 11:40 AM

View differences:

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
	}
(6-6/6)
Add picture from clipboard (Maximum size: 48.8 MB)