Attention is currently required from: jolly, laforge, lynxis.

jolly uploaded patch set #7 to this change.

View Change

The following approvals got outdated and were removed: Code-Review+1 by laforge, 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 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/7

To view, visit change 43745. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I885b3b529276f46fbbe6d86be2170b0bffbb8434
Gerrit-Change-Number: 43745
Gerrit-PatchSet: 7
Gerrit-Owner: jolly <andreas@eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: lynxis <lynxis@fe80.eu>
Gerrit-CC: pespin <pespin@sysmocom.de>
Gerrit-Attention: jolly <andreas@eversberg.eu>
Gerrit-Attention: laforge <laforge@osmocom.org>
Gerrit-Attention: lynxis <lynxis@fe80.eu>