Attention is currently required from: jolly, laforge, lynxis.
jolly uploaded patch set #10 to this change.
The following approvals got outdated and were removed: Verified+1 by Jenkins Builder
Add priority mapping support to osmo-remsim-server
A normal mapping and a mapping with higher priority may share the same
bank/slot. In this case the normal mapping will be inactive until the
mapping with higher priority has been removed. This allows temporary
mapping for maintenance purposes without removing the existing mapping
to a bank/slot.
If a mappings with different priority share the same bank/slot, the
mapping with higher priority is activated and the mapping with the lower
priority is suspended. The following steps are performed, if a mapping
to the same bank/slot is added with higher priority:
* The higher priority mapping is created and put into INACTIVE state.
* The lower priority mapping is suspended and put into INACTIVE state.
* The higher priority mapping is activated and becomes ACTIVE.
Once the higher priority mapping is removed, the lower priority mapping
is resumed. The following steps are performed:
* The higher priority mapping is deactivated and then removed.
* The lower priority mapping in INACTIVE state is activated again and
becomes ACTIVE.
If a lower priority mapping is added while a higher priority mapping to
the same bank/slot exists, the added mapping will stay in INACTIVE state
until it is removed or the higher priority mapping is removed.
To control the priority attribute, the rest API is expanded. An optional
'priority' tag is added to the URL. If not specified, the default
priority of 0 is used.
The rest API allows to show only mappings with given or default
priority, not all at once. This prevents prioritized mappings from
interfering with user's applications.
Related: SYS#8159
Change-Id: I885b3b529276f46fbbe6d86be2170b0bffbb8434
---
M src/server/rest_api.c
M src/server/rspro_server.c
M src/slotmap.h
3 files changed, 103 insertions(+), 10 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/45/43745/10
To view, visit change 43745. To unsubscribe, or for help writing mail filters, visit settings.