aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2_vty.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-11-19 02:44:04 +0100
committerAlexander Couzens <lynxis@fe80.eu>2020-11-24 03:53:22 +0100
commitaac9016570f9c2727598ab3f68efb148ba259877 (patch)
tree1c92013f80dc794accf906d340ae7e84ae780cf3 /src/gb/gprs_ns2_vty.c
parent24a14ac80c46b7ac82dcddecb7068a484cd9e93c (diff)
ns2: move link layer type into NSE
Even it was in theory possible to mix NS-VC ll types within a NSE. This is an unrealistic configuration. Further more to select the correct load sharing mechanism the NSE must know the correct link layer. Change-Id: I18dfd40a2429cd61b7c4a3dad5f226c64296f7d8
Diffstat (limited to 'src/gb/gprs_ns2_vty.c')
-rw-r--r--src/gb/gprs_ns2_vty.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index fa9b97b8..4c00ae32 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -525,11 +525,6 @@ DEFUN(cfg_nse_fr_dlci, cfg_nse_fr_dlci_cmd,
return CMD_WARNING;
}
- if (vtyvc->ll != GPRS_NS2_LL_FR_GRE) {
- vty_out(vty, "Warning: seting FR DLCI on non-FR NSE%s",
- VTY_NEWLINE);
- }
-
vtyvc->frdlci = dlci;
return CMD_SUCCESS;
@@ -880,7 +875,7 @@ int gprs_ns2_vty_create() {
nse = gprs_ns2_nse_by_nsei(vty_nsi, vtyvc->nsei);
if (!nse) {
- nse = gprs_ns2_create_nse(vty_nsi, vtyvc->nsei);
+ nse = gprs_ns2_create_nse(vty_nsi, vtyvc->nsei, vtyvc->ll);
if (!nse) {
/* Could not create NSE for VTY */
continue;