diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-07-03 17:21:52 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2021-07-03 17:26:35 +0200 |
commit | f15d236e3eee8e7cbdc184d401f33b062d1b1aac (patch) | |
tree | da4f8ae7e8cd5d80602004dc5f64b8325a8fd5ef | |
parent | 419d8a296bec3f2192b784605965b1a4ee84976f (diff) |
vty: fix doc: default value for 'nri bitlen'
The constant is called OSMO_NRI_BITLEN_DEFAULT, NRI_BITLEN_DEFAULT does
not exist and got rendered as "NRI_BITLEN_DEFAULT" in the vty doc.
Add missing vty test for 'nri bitlen'.
Change-Id: I8af840a4589f47eaca6bf10e37e0859f9ae53dfa
-rw-r--r-- | src/osmo-bsc/bsc_vty.c | 2 | ||||
-rw-r--r-- | tests/nri_cfg.vty | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c index 8ba55e6d0..7207341a1 100644 --- a/src/osmo-bsc/bsc_vty.c +++ b/src/osmo-bsc/bsc_vty.c @@ -2326,7 +2326,7 @@ DEFUN_ATTR(cfg_net_nri_bitlen, "nri bitlen <1-15>", NRI_STR "Set number of bits that an NRI has, to extract from TMSI identities (always starting just after the TMSI's most significant octet).\n" - "bit count (default: " OSMO_STRINGIFY_VAL(NRI_BITLEN_DEFAULT) ")\n", + "bit count (default: " OSMO_STRINGIFY_VAL(OSMO_NRI_BITLEN_DEFAULT) ")\n", CMD_ATTR_IMMEDIATE) { struct gsm_network *gsmnet = gsmnet_from_vty(vty); diff --git a/tests/nri_cfg.vty b/tests/nri_cfg.vty index 8287eab38..d3db3c845 100644 --- a/tests/nri_cfg.vty +++ b/tests/nri_cfg.vty @@ -79,6 +79,19 @@ msc 1 nri add 1024 1025 OsmoBSC(config)# network + +OsmoBSC(config-net)# list +... + nri bitlen <1-15> +... + +OsmoBSC(config-net)# nri ? + bitlen Set number of bits that an NRI has, to extract from TMSI identities (always starting just after the TMSI's most significant octet). + null Define NULL-NRI values that cause re-assignment of an MS to a different MSC, for MSC pooling. + +OsmoBSC(config-net)# nri bitlen ? + <1-15> bit count (default: 10) + OsmoBSC(config-net)# nri bitlen 11 OsmoBSC(config-net)# show running-config ... |