This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-uecups/+/17952 ) Change subject: daemon: Add VTY command to configure local bind IP of UECUPS socket ...................................................................... daemon: Add VTY command to configure local bind IP of UECUPS socket Change-Id: Iabe37ce5c77fddcc146fca3b81660822071d1925 --- M daemon/daemon_vty.c 1 file changed, 37 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-uecups refs/changes/52/17952/1 diff --git a/daemon/daemon_vty.c b/daemon/daemon_vty.c index c84c727..ec1ddda 100644 --- a/daemon/daemon_vty.c +++ b/daemon/daemon_vty.c @@ -260,6 +260,39 @@ return CMD_SUCCESS; } +#define UECUPS_NODE (_LAST_OSMOVTY_NODE+1) + +static struct cmd_node uecups_node = { + UECUPS_NODE, + "%(config-uecups)# ", + 1, +}; + +static int config_write_uecups(struct vty *vty) +{ + vty_out(vty, "uecups%s", VTY_NEWLINE); + vty_out(vty, " local-ip %s%s", g_daemon->cfg.cups_local_ip, VTY_NEWLINE); + + return CMD_SUCCESS; +} + +DEFUN(cfg_uecups, cfg_uecups_cmd, + "uecups", + "Configure the UE Control/User Plane Socket\n") +{ + vty->node = UECUPS_NODE; + return CMD_SUCCESS; +} + +DEFUN(cfg_uecups_local_ip, cfg_uecups_local_ip_cmd, + "local-ip A.B.C.D", + "Set the IP address to which we bind locally\n" + "IP Address\n") +{ + osmo_talloc_replace_string(g_daemon, &g_daemon->cfg.cups_local_ip, argv[0]); + return CMD_SUCCESS; +} + int gtpud_vty_init(void) { @@ -273,6 +306,10 @@ install_element_ve(&show_tunnel_cmd); + install_element(CONFIG_NODE, &cfg_uecups_cmd); + install_node(&uecups_node, config_write_uecups); + install_element(UECUPS_NODE, &cfg_uecups_local_ip_cmd); + return 0; } -- To view, visit https://gerrit.osmocom.org/c/osmo-uecups/+/17952 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-uecups Gerrit-Branch: master Gerrit-Change-Id: Iabe37ce5c77fddcc146fca3b81660822071d1925 Gerrit-Change-Number: 17952 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200426/2e21a538/attachment.htm>