diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-07-05 03:11:17 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-02-26 13:23:24 +0100 |
commit | 57d3515abd319e0f8cd2dde0b82e9833a2cf6acc (patch) | |
tree | 6a94a0df04ddcc582bd41dc64a68c3b53aa1eaed /src/pcu_vty.c | |
parent | 2a47c732175b8f15d31155e9b44a0878f16c18c6 (diff) |
Optionally Use the NS Sub-Network-Service (SNS) on Gb
This change add support for the recently-introduced GPRS Gb interface
auto-configuration using the NS IP Sub-Network Service (SNS) procedures.
It requires a Change-Id I84786c3b43a8ae34ef3b3ba84b33c90042d234ea of
libosmocore.
Related: OS#3372
Depends: I84786c3b43a8ae34ef3b3ba84b33c90042d234ea (libosmcore)
Change-Id: I256b40ac592d3b6e75dd581bf7b9512f69b11e83
Diffstat (limited to 'src/pcu_vty.c')
-rw-r--r-- | src/pcu_vty.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/pcu_vty.c b/src/pcu_vty.c index 6f50bf10..960c90d9 100644 --- a/src/pcu_vty.c +++ b/src/pcu_vty.c @@ -265,6 +265,11 @@ static int config_write_pcu(struct vty *vty) } } + if (bts->gb_dialect_sns) + vty_out(vty, " gb-dialect ip-sns%s", VTY_NEWLINE); + else + vty_out(vty, " gb-dialect classic%s", VTY_NEWLINE); + return CMD_SUCCESS; } @@ -1059,6 +1064,23 @@ DEFUN(cfg_pcu_sock, return CMD_SUCCESS; } +DEFUN(cfg_pcu_gb_dialect, + cfg_pcu_gb_dialect_cmd, + "gb-dialect (classic|ip-sns)", + "Select which Gb interface dialect to use\n" + "Classic Gb interface with NS-{RESET,BLOCK,UNBLOCK} and static configuration\n" + "Modern Gb interface with IP-SNS (Sub Network Service) and dynamic configuration\n") +{ + struct gprs_rlcmac_bts *bts = bts_main_data(); + + if (!strcmp(argv[0], "ip-sns")) + bts->gb_dialect_sns = true; + else + bts->gb_dialect_sns = false; + + return CMD_SUCCESS; +} + DEFUN(show_tbf, show_tbf_cmd, "show tbf all", @@ -1189,6 +1211,7 @@ int pcu_vty_init(const struct log_info *cat) install_element(PCU_NODE, &cfg_pcu_gsmtap_categ_cmd); install_element(PCU_NODE, &cfg_pcu_no_gsmtap_categ_cmd); install_element(PCU_NODE, &cfg_pcu_sock_cmd); + install_element(PCU_NODE, &cfg_pcu_gb_dialect_cmd); install_element_ve(&show_bts_stats_cmd); install_element_ve(&show_tbf_cmd); |