aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-30 00:41:37 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-30 00:41:37 +0800
commit2656e8f4aade6e15b2cb4aad2e364881641e0343 (patch)
tree38ff17689801a67994135d131f1554309c9deb72
parent7942abc95d6f6205a8a8f9e375cd3a6443b749d2 (diff)
vty: Implement writing the config file
-rw-r--r--src/vty_interface.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/vty_interface.c b/src/vty_interface.c
index 6a6fbaa..1782ea1 100644
--- a/src/vty_interface.c
+++ b/src/vty_interface.c
@@ -56,8 +56,21 @@ static struct cmd_node cell_node = {
1,
};
-static int config_write_cell()
-{
+static int config_write_cell(struct vty *vty)
+{
+ vty_out(vty, "cellmgr%s", VTY_NEWLINE);
+ vty_out(vty, " mtp dpc %d%s", bsc.dpc, VTY_NEWLINE);
+ vty_out(vty, " mtp opc %d%s", bsc.opc, VTY_NEWLINE);
+ if (bsc.udp_ip)
+ vty_out(vty, " udp dest ip %s%s", bsc.udp_ip, VTY_NEWLINE);
+ vty_out(vty, " udp dest port %d%s", bsc.udp_port, VTY_NEWLINE);
+ vty_out(vty, " udp src port %d%s", bsc.src_port, VTY_NEWLINE);
+ vty_out(vty, " udp reset %d%s", bsc.link.udp.reset_timeout, VTY_NEWLINE);
+ vty_out(vty, " mtp sltm once %d%s", bsc.once, VTY_NEWLINE);
+ vty_out(vty, " msc ip %s%s", bsc.msc_address, VTY_NEWLINE);
+ vty_out(vty, " msc ip-dscp %d%s", bsc.msc_ip_dscp, VTY_NEWLINE);
+ vty_out(vty, " msc token %s%s", bsc.token, VTY_NEWLINE);
+
return CMD_SUCCESS;
}