move f_vty_config() from MSC_Tests to Osmocom_VTY_Functions

Change-Id: Ie7373c28b1d2b76f8d637ac6c86976fd341e3e2c
diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn
index eb51a03..a375df6 100644
--- a/library/Osmocom_VTY_Functions.ttcn
+++ b/library/Osmocom_VTY_Functions.ttcn
@@ -109,4 +109,16 @@
 		f_vty_transceive(pt, "timeslot " & int2str(ts));
 	}
 
+function f_vty_config(TELNETasp_PT pt, charstring config_node, charstring cmd)
+{
+	/* enter config mode; enter node */
+	f_vty_enter_config(pt);
+	f_vty_transceive(pt, config_node);
+	/* execute command */
+	f_vty_transceive(pt, cmd);
+	/* leave config mode */
+	f_vty_transceive(pt, "end");
+}
+
+
 }