Change in ...osmo-bsc[master]: vty: adjust config name for unit-id

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.org
Thu Jun 6 19:46:21 UTC 2019


laforge has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-bsc/+/14365 )

Change subject: vty: adjust config name for unit-id
......................................................................

vty: adjust config name for unit-id

Having different names for the same config setting is misleading, so
let's stick to the one used by osmo-bts.

Change-Id: Ide5ceb5db7403a70313405752579e30d7bb94eac
---
M doc/examples/osmo-bsc/osmo-bsc-minimal.cfg
M doc/examples/osmo-bsc/osmo-bsc.cfg
M doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg
M doc/manuals/chapters/bts-examples.adoc
M doc/manuals/vty/bsc_vty_reference.xml
M doc/manuals/vty/libbsc_vty_additions.xml
M src/osmo-bsc/bsc_vty.c
7 files changed, 47 insertions(+), 22 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/doc/examples/osmo-bsc/osmo-bsc-minimal.cfg b/doc/examples/osmo-bsc/osmo-bsc-minimal.cfg
index 850e29c..f2597b8 100644
--- a/doc/examples/osmo-bsc/osmo-bsc-minimal.cfg
+++ b/doc/examples/osmo-bsc/osmo-bsc-minimal.cfg
@@ -5,7 +5,7 @@
   type sysmobts
   band GSM-1800
   location_area_code 23
-  ip.access unit_id 1800 0
+  ipa unit-id 1800 0
   trx 0
    rf_locked 0
    arfcn 868
diff --git a/doc/examples/osmo-bsc/osmo-bsc.cfg b/doc/examples/osmo-bsc/osmo-bsc.cfg
index eec154d..926951b 100644
--- a/doc/examples/osmo-bsc/osmo-bsc.cfg
+++ b/doc/examples/osmo-bsc/osmo-bsc.cfg
@@ -36,8 +36,8 @@
   channel-descrption bs-pa-mfrms 5
   channel-descrption bs-ag-blks-res 1
   early-classmark-sending forbidden
-  ip.access unit_id 0 0
-  oml ip.access stream_id 255 line 0
+  ipa unit-id 0 0
+  oml ipa stream-id 255 line 0
   codec-support fr
   gprs mode none
   trx 0
diff --git a/doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg b/doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg
index fd3a349..80a38ba 100644
--- a/doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg
+++ b/doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg
@@ -35,8 +35,8 @@
   channel-descrption bs-pa-mfrms 5
   channel-descrption bs-ag-blks-res 1
   early-classmark-sending forbidden
-  ip.access unit_id 0 0
-  oml ip.access stream_id 255 line 0
+  ipa unit-id 0 0
+  oml ipa stream-id 255 line 0
   codec-support fr
   gprs mode none
   trx 0
diff --git a/doc/manuals/chapters/bts-examples.adoc b/doc/manuals/chapters/bts-examples.adoc
index 2dd8b37..58cb3ab 100644
--- a/doc/manuals/chapters/bts-examples.adoc
+++ b/doc/manuals/chapters/bts-examples.adoc
@@ -35,8 +35,8 @@
   channel allocator ascending
   rach tx integer 9
   rach max transmission 7
-  ip.access unit_id 1801 0 <4>
-  oml ip.access stream_id 255 line 0
+  ipa unit-id 1801 0 <4>
+  oml ipa stream-id 255 line 0
   gprs mode none
   trx 0
    rf_locked 0
@@ -113,8 +113,8 @@
   channel allocator ascending
   rach tx integer 9
   rach max transmission 7
-  ip.access unit_id 1800 0 <1>
-  oml ip.access stream_id 255 line 0
+  ipa unit-id 1800 0 <1>
+  oml ipa stream-id 255 line 0
   gprs mode none
   trx 0
    rf_locked 0
diff --git a/doc/manuals/vty/bsc_vty_reference.xml b/doc/manuals/vty/bsc_vty_reference.xml
index 9992267..4d25e69 100644
--- a/doc/manuals/vty/bsc_vty_reference.xml
+++ b/doc/manuals/vty/bsc_vty_reference.xml
@@ -2884,7 +2884,7 @@
         <param name='<0-63>' doc='BSIC of this BTS' />
       </params>
     </command>
-    <command id='ip.access unit_id <0-65534> <0-255>'>
+    <command id='ipa unit-id <0-65534> <0-255>'>
       <params>
         <param name='ip.access' doc='Abis/IP specific options' />
         <param name='unit_id' doc='Set the IPA BTS Unit ID' />
@@ -2892,7 +2892,7 @@
         <param name='<0-255>' doc='Unit ID (BTS)' />
       </params>
     </command>
-    <command id='ip.access rsl-ip A.B.C.D'>
+    <command id='ipa rsl-ip A.B.C.D'>
       <params>
         <param name='ip.access' doc='Abis/IP specific options' />
         <param name='rsl-ip' doc='Set the IPA RSL IP Address of the BSC' />
@@ -2922,7 +2922,7 @@
         <param name='<15-100>' doc='and the BTS is being bootstrapped.' />
       </params>
     </command>
-    <command id='oml ip.access stream_id <0-255> line E1_LINE'>
+    <command id='oml ipa stream-id <0-255> line E1_LINE'>
       <params>
         <param name='oml' doc='Organization & Maintenance Link' />
         <param name='ip.access' doc='A-bis/IP Specific Options' />
diff --git a/doc/manuals/vty/libbsc_vty_additions.xml b/doc/manuals/vty/libbsc_vty_additions.xml
index 8685398..cf61961 100644
--- a/doc/manuals/vty/libbsc_vty_additions.xml
+++ b/doc/manuals/vty/libbsc_vty_additions.xml
@@ -11,7 +11,7 @@
       <child_of nodeid='14' />
       <name>BTS Configuration</name>
       <description>This is the configuration of a single BTS.</description>
-      <command id='oml ip.access stream_id <0-255> line E1_LINE'>
+      <command id='oml ipa stream-id <0-255> line E1_LINE'>
         <description>
 	  Set the IPA stream identifier for the OML link within the IPA
 	  multiplex.  Must be the same as on the BTS side.  The default
@@ -40,7 +40,7 @@
 	  shall be used by MS in this cell.  The default should be enabled.
 	</description>
       </command>
-      <command id='ip.access rsl-ip A.B.C.D'>
+      <command id='ipa rsl-ip A.B.C.D'>
         <description>
 	  Configure the IP address of the BSC used for RSL.  Abis/IP
 	  BTSs, including OsmoBTS and the nanoBTS will be instructed to
@@ -96,7 +96,7 @@
 	  re-selection.
 	</description>
       </command>
-      <command id='ip.access unit_id <0-65534> <0-255>'>
+      <command id='ipa unit-id <0-65534> <0-255>'>
         <description>
 	  The ip.access unit ID is a parameter of the IPA
 	  Signalling-over-IP multiplex.  It is administratively
diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c
index 111c910..c4e091c 100644
--- a/src/osmo-bsc/bsc_vty.c
+++ b/src/osmo-bsc/bsc_vty.c
@@ -897,15 +897,15 @@
 	switch (bts->type) {
 	case GSM_BTS_TYPE_NANOBTS:
 	case GSM_BTS_TYPE_OSMOBTS:
-		vty_out(vty, "  ip.access unit_id %u %u%s",
+		vty_out(vty, "  ipa unit-id %u %u%s",
 			bts->ip_access.site_id, bts->ip_access.bts_id, VTY_NEWLINE);
 		if (bts->ip_access.rsl_ip) {
 			struct in_addr ia;
 			ia.s_addr = htonl(bts->ip_access.rsl_ip);
-			vty_out(vty, "  ip.access rsl-ip %s%s", inet_ntoa(ia),
+			vty_out(vty, "  ipa rsl-ip %s%s", inet_ntoa(ia),
 				VTY_NEWLINE);
 		}
-		vty_out(vty, "  oml ip.access stream_id %u line %u%s",
+		vty_out(vty, "  oml ipa stream-id %u line %u%s",
 			bts->oml_tei, bts->oml_e1_link.e1_nr, VTY_NEWLINE);
 		break;
 	case GSM_BTS_TYPE_NOKIA_SITE:
@@ -2180,7 +2180,7 @@
 
 DEFUN(cfg_bts_unit_id,
       cfg_bts_unit_id_cmd,
-      "ip.access unit_id <0-65534> <0-255>",
+      "ipa unit-id <0-65534> <0-255>",
       "Abis/IP specific options\n"
       "Set the IPA BTS Unit ID\n"
       "Unit ID (Site)\n"
@@ -2201,9 +2201,17 @@
 	return CMD_SUCCESS;
 }
 
+DEFUN_DEPRECATED(cfg_bts_unit_id,
+      cfg_bts_deprecated_unit_id_cmd,
+      "ip.access unit_id <0-65534> <0-255>",
+      "Abis/IP specific options\n"
+      "Set the IPA BTS Unit ID\n"
+      "Unit ID (Site)\n"
+      "Unit ID (BTS)\n");
+
 DEFUN(cfg_bts_rsl_ip,
       cfg_bts_rsl_ip_cmd,
-      "ip.access rsl-ip A.B.C.D",
+      "ipa rsl-ip A.B.C.D",
       "Abis/IP specific options\n"
       "Set the IPA RSL IP Address of the BSC\n"
       "Destination IP address for RSL connection\n")
@@ -2222,6 +2230,13 @@
 	return CMD_SUCCESS;
 }
 
+DEFUN_DEPRECATED(cfg_bts_rsl_ip,
+      cfg_bts_deprecated_rsl_ip_cmd,
+      "ip.access rsl-ip A.B.C.D",
+      "Abis/IP specific options\n"
+      "Set the IPA RSL IP Address of the BSC\n"
+      "Destination IP address for RSL connection\n");
+
 #define NOKIA_STR "Nokia *Site related commands\n"
 
 DEFUN(cfg_bts_nokia_site_skip_reset,
@@ -2287,9 +2302,9 @@
 
 DEFUN(cfg_bts_stream_id,
       cfg_bts_stream_id_cmd,
-      "oml ip.access stream_id <0-255> line E1_LINE",
+      "oml ipa stream-id <0-255> line E1_LINE",
 	OML_STR IPA_STR
-      "Set the ip.access Stream ID of the OML link of this BTS\n"
+      "Set the ipa Stream ID of the OML link of this BTS\n"
       "Stream Identifier\n" "Virtual E1 Line Number\n" "Virtual E1 Line Number\n")
 {
 	struct gsm_bts *bts = vty->index;
@@ -2307,6 +2322,13 @@
 	return CMD_SUCCESS;
 }
 
+DEFUN_DEPRECATED(cfg_bts_stream_id,
+      cfg_bts_deprecated_stream_id_cmd,
+      "oml ip.access stream_id <0-255> line E1_LINE",
+	OML_STR IPA_STR
+      "Set the ip.access Stream ID of the OML link of this BTS\n"
+      "Stream Identifier\n" "Virtual E1 Line Number\n" "Virtual E1 Line Number\n");
+
 #define OML_E1_STR OML_STR "OML E1/T1 Configuration\n"
 
 DEFUN(cfg_bts_oml_e1,
@@ -5237,11 +5259,14 @@
 	install_element(BTS_NODE, &cfg_bts_tsc_cmd);
 	install_element(BTS_NODE, &cfg_bts_bsic_cmd);
 	install_element(BTS_NODE, &cfg_bts_unit_id_cmd);
+	install_element(BTS_NODE, &cfg_bts_deprecated_unit_id_cmd);
 	install_element(BTS_NODE, &cfg_bts_rsl_ip_cmd);
+	install_element(BTS_NODE, &cfg_bts_deprecated_rsl_ip_cmd);
 	install_element(BTS_NODE, &cfg_bts_nokia_site_skip_reset_cmd);
 	install_element(BTS_NODE, &cfg_bts_nokia_site_no_loc_rel_cnf_cmd);
 	install_element(BTS_NODE, &cfg_bts_nokia_site_bts_reset_timer_cnf_cmd);
 	install_element(BTS_NODE, &cfg_bts_stream_id_cmd);
+	install_element(BTS_NODE, &cfg_bts_deprecated_stream_id_cmd);
 	install_element(BTS_NODE, &cfg_bts_oml_e1_cmd);
 	install_element(BTS_NODE, &cfg_bts_oml_e1_tei_cmd);
 	install_element(BTS_NODE, &cfg_bts_challoc_cmd);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/14365
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ide5ceb5db7403a70313405752579e30d7bb94eac
Gerrit-Change-Number: 14365
Gerrit-PatchSet: 3
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190606/2492bec7/attachment.htm>


More information about the gerrit-log mailing list