Add channel_allocator cfg attr to bts resources
Change-Id: I682809d4aeb91a36e3a35fc481e8d40d0b084fa0
diff --git a/src/osmo_gsm_tester/schema.py b/src/osmo_gsm_tester/schema.py
index 1473ad7..4a15bcd 100644
--- a/src/osmo_gsm_tester/schema.py
+++ b/src/osmo_gsm_tester/schema.py
@@ -105,6 +105,11 @@
return
raise ValueError('Unknown Physical channel config: %r' % val)
+def channel_allocator(val):
+ if val in ('ascending', 'descending'):
+ return
+ raise ValueError('Unknown Channel Allocator Policy %r' % val)
+
INT = 'int'
STR = 'str'
UINT = 'uint'
@@ -120,6 +125,7 @@
CIPHER = 'cipher'
MODEM_FEATURE = 'modem_feature'
PHY_CHAN = 'chan'
+CHAN_ALLOCATOR = 'chan_allocator'
SCHEMA_TYPES = {
INT: int,
@@ -137,6 +143,7 @@
CIPHER: cipher,
MODEM_FEATURE: modem_feature,
PHY_CHAN: phy_channel_config,
+ CHAN_ALLOCATOR: channel_allocator,
}
def validate(config, schema):