neels has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-bsc/+/31626 )


Change subject: add timeslot.vty
......................................................................

add timeslot.vty

Prepare some basic tests for 'timeslot' / 'phys_chan_config', because an
upcoming patch will add the 'osmodyn' alias, and this test shall show
the changes on the VTY.

Change-Id: I2c4aab90bcbc9019ca004fb1d4945476edbb7363
---
A tests/timeslot.vty
1 file changed, 84 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/26/31626/1

diff --git a/tests/timeslot.vty b/tests/timeslot.vty
new file mode 100644
index 0000000..0a2f01c
--- /dev/null
+++ b/tests/timeslot.vty
@@ -0,0 +1,71 @@
+OsmoBSC> enable
+OsmoBSC# configure terminal
+OsmoBSC(config)# network
+OsmoBSC(config-net)# bts 0
+OsmoBSC(config-net-bts)# trx 0
+OsmoBSC(config-net-bts-trx)# timeslot 0
+
+OsmoBSC(config-net-bts-trx-ts)# list
+...
+  phys_chan_config 
(none|ccch|ccch+sdcch4|tch/f|tch/h|sdcch8|pdch|tch/f_pdch|unknown|ccch+sdcch4+cbch|sdcch8+cbch|tch/f_tch/h_sdcch8_pdch)
+  training_sequence_code <0-7>
+  hopping enabled (0|1)
+  hopping sequence-number <0-63>
+  hopping maio <0-63>
+  hopping arfcn add <0-1023>
+  hopping arfcn del <0-1023>
+  hopping arfcn del-all
+  e1 line E1_LINE timeslot <1-31> sub-slot (0|1|2|3|full)
+
+OsmoBSC(config-net-bts-trx-ts)# phys_chan_config?
+  phys_chan_config  Physical Channel Combination
+
+OsmoBSC(config-net-bts-trx-ts)# phys_chan_config ?
+  none                     Physical Channel not configured
+  ccch                     FCCH + SCH + BCCH + CCCH (Comb. IV)
+  ccch+sdcch4              FCCH + SCH + BCCH + CCCH + 4 SDCCH + 2 SACCH (Comb. 
V)
+  tch/f                    TCH/F + FACCH/F + SACCH (Comb. I)
+  tch/h                    2 TCH/H + 2 FACCH/H + 2 SACCH (Comb. II)
+  sdcch8                   8 SDCCH + 4 SACCH (Comb. VII)
+  pdch                     Packet Data Channel for GPRS/EDGE
+  tch/f_pdch               Dynamic TCH/F or GPRS PDCH
+  unknown                  Unknown / Unsupported channel combination
+  ccch+sdcch4+cbch         FCCH + SCH + BCCH + CCCH + CBCH + 3 SDCCH + 2 SACCH 
(Comb. V)
+  sdcch8+cbch              7 SDCCH + 4 SACCH + CBCH (Comb. VII)
+  tch/f_tch/h_sdcch8_pdch  Dynamic TCH/F or TCH/H or SDCCH/8 or GPRS PDCH
+
+OsmoBSC(config-net-bts-trx-ts)# phys_chan_config none
+OsmoBSC(config-net-bts-trx-ts)# show running-config
+...
+  trx 0
+...
+   timeslot 0
+    hopping enabled 0
+...
+
+OsmoBSC(config-net-bts-trx-ts)# phys_chan_config tch/f
+OsmoBSC(config-net-bts-trx-ts)# show running-config
+...
+  trx 0
+...
+   timeslot 0
+    phys_chan_config TCH/F
+...
+
+OsmoBSC(config-net-bts-trx-ts)# phys_chan_config TCH/F
+OsmoBSC(config-net-bts-trx-ts)# show running-config
+...
+  trx 0
+...
+   timeslot 0
+    phys_chan_config TCH/F
+...
+
+OsmoBSC(config-net-bts-trx-ts)# phys_chan_config tch/f_tch/h_sdcch8_pdch
+OsmoBSC(config-net-bts-trx-ts)# show running-config
+...
+  trx 0
+...
+   timeslot 0
+    phys_chan_config TCH/F_TCH/H_SDCCH8_PDCH
+...

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I2c4aab90bcbc9019ca004fb1d4945476edbb7363
Gerrit-Change-Number: 31626
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofm...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to