aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty_interface.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-01 13:34:58 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-01 13:34:58 +0100
commit7a7255657797ae9fa72a93cab4e1f1d71d094ca3 (patch)
tree63e5558c4675e12ce1c9fce1c9e8c14424a30d10 /src/vty_interface.c
parentff9cd6f8f6f0c4505b4c01d8746d490eb41d7fc5 (diff)
mtp: Allow to have a different POC for SCCP
Diffstat (limited to 'src/vty_interface.c')
-rw-r--r--src/vty_interface.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vty_interface.c b/src/vty_interface.c
index f3f711c..847b6a2 100644
--- a/src/vty_interface.c
+++ b/src/vty_interface.c
@@ -62,6 +62,7 @@ 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);
+ vty_out(vty, " mtp sccp-opc %d%s", bsc.sccp_opc, VTY_NEWLINE);
vty_out(vty, " mtp ni %d%s", bsc.ni_ni, VTY_NEWLINE);
vty_out(vty, " mtp spare %d%s", bsc.ni_spare, VTY_NEWLINE);
vty_out(vty, " mtp sltm once %d%s", bsc.once, VTY_NEWLINE);
@@ -103,6 +104,14 @@ DEFUN(cfg_net_opc, cfg_net_opc_cmd,
return CMD_SUCCESS;
}
+DEFUN(cfg_net_sccp_opc, cfg_net_sccp_opc_cmd,
+ "mtp sccp-opc OPC_NR",
+ "Set the SCCP OPC to be used.")
+{
+ bsc.sccp_opc = atoi(argv[0]);
+ return CMD_SUCCESS;
+}
+
DEFUN(cfg_net_mtp_ni, cfg_net_mtp_ni_cmd,
"mtp ni NR",
"Set the MTP NI to be used.\n" "NR")
@@ -277,6 +286,7 @@ void cell_vty_init(void)
install_element(CELLMGR_NODE, &cfg_net_dpc_cmd);
install_element(CELLMGR_NODE, &cfg_net_opc_cmd);
+ install_element(CELLMGR_NODE, &cfg_net_sccp_opc_cmd);
install_element(CELLMGR_NODE, &cfg_net_mtp_ni_cmd);
install_element(CELLMGR_NODE, &cfg_net_mtp_spare_cmd);
install_element(CELLMGR_NODE, &cfg_udp_dst_ip_cmd);