aboutsummaryrefslogtreecommitdiffstats
path: root/tests/handover_cfg.vty
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-06-22 05:38:34 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-06-22 05:48:06 +0700
commitfa3f91d2dbb72456683e139eca00a062259f1506 (patch)
tree5a20e0be9a1438c1ce62a35399c665e42a12cc9b /tests/handover_cfg.vty
parent6411d95a6eaefb4a48f7e7e3440fb7e6d32d4005 (diff)
tests/handover_cfg.vty: use more precise regex for forbidden lines
Current regex 'handover' is way too restrictive because it completely forbids the use of word 'handover'. Adding new VTY commands with this word in the syntax makes this VTY test fail. Use regex '^\s+handover', which only matches lines starting with some whitespace and the word 'handover'. Lines simply containing the word 'handover' will be ignored. Change-Id: I8a1550c6c97437832e05b6b4bebbcc33c2fa3d46 Related: SYS#5460
Diffstat (limited to 'tests/handover_cfg.vty')
-rw-r--r--tests/handover_cfg.vty58
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/handover_cfg.vty b/tests/handover_cfg.vty
index fb3c73c49..0f1013319 100644
--- a/tests/handover_cfg.vty
+++ b/tests/handover_cfg.vty
@@ -6,7 +6,7 @@ OsmoBSC> enable
OsmoBSC# ### No handover config present
OsmoBSC# show running-config
-... !handover
+... !^\s+handover
OsmoBSC# ### Toggling handover on network level affects 'show network':
OsmoBSC# configure terminal
@@ -44,17 +44,17 @@ OsmoBSC(config-net)# ### HO is 'on' globally, bts 0 disables it, bts 1 tweaks a
OsmoBSC(config-net)# show running-config
...
network
-... !handover
+... !^\s+handover
handover 1
-... !handover
+... !^\s+handover
bts 0
-... !handover
+... !^\s+handover
handover 0
-... !handover
+... !^\s+handover
bts 1
-... !handover
+... !^\s+handover
handover1 power budget interval 23
-... !handover
+... !^\s+handover
OsmoBSC(config-net)# ### Set global default to 'off', now bts 1 also uses the global default of 'off':
OsmoBSC(config-net)# handover 0
@@ -65,17 +65,17 @@ OsmoBSC(config-net)# do show network
OsmoBSC(config-net)# show running-config
...
network
-... !handover
+... !^\s+handover
handover 0
-... !handover
+... !^\s+handover
bts 0
-... !handover
+... !^\s+handover
handover 0
-... !handover
+... !^\s+handover
bts 1
-... !handover
+... !^\s+handover
handover1 power budget interval 23
-... !handover
+... !^\s+handover
OsmoBSC(config-net)# ### Remove the global setting, i.e. use the factory default net level, with same effect:
OsmoBSC(config-net)# handover default
@@ -89,15 +89,15 @@ OsmoBSC(config-net)# do show network
OsmoBSC(config-net)# show running-config
...
network
-... !handover
+... !^\s+handover
bts 0
-... !handover
+... !^\s+handover
handover 0
-... !handover
+... !^\s+handover
bts 1
-... !handover
+... !^\s+handover
handover1 power budget interval 23
-... !handover
+... !^\s+handover
OsmoBSC(config-net)# ### Re-enable net-level handover, but bts 0 remains disabled explicitly
OsmoBSC(config-net)# handover 1
@@ -108,17 +108,17 @@ OsmoBSC(config-net)# do show network
OsmoBSC(config-net)# show running-config
...
network
-... !handover
+... !^\s+handover
handover 1
-... !handover
+... !^\s+handover
bts 0
-... !handover
+... !^\s+handover
handover 0
-... !handover
+... !^\s+handover
bts 1
-... !handover
+... !^\s+handover
handover1 power budget interval 23
-... !handover
+... !^\s+handover
OsmoBSC(config-net)# ### Remove explicit setting of bts 0 to also use the global setting:
OsmoBSC(config-net)# bts 0
@@ -133,15 +133,15 @@ OsmoBSC(config-net-bts)# do show network
OsmoBSC(config-net-bts)# show running-config
...
network
-... !handover
+... !^\s+handover
handover 1
-... !handover
+... !^\s+handover
bts 0
-... !handover
+... !^\s+handover
bts 1
-... !handover
+... !^\s+handover
handover1 power budget interval 23
-... !handover
+... !^\s+handover
OsmoBSC(config-net-bts)# ### Verify that 'min rxlev' value range stops at -50
OsmoBSC(config-net-bts)# handover2 min rxlev ?