From aac9016570f9c2727598ab3f68efb148ba259877 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Thu, 19 Nov 2020 02:44:04 +0100 Subject: 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 --- src/gb/gprs_ns2_vty.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/gb/gprs_ns2_vty.c') 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; -- cgit v1.2.3