Update XAPP-FRAME-PY module dependencies to use latest SDL version 3.0.0
(RIC-699) what contains support for SDL multi-namespace and sentinel based
DB capacity scaling features. Also Notification packing has been fixed in
SDL version 3.0.0 (RIC-795).
XAPP-FRAME API change: received SDL events are now returned as a list of
strings, earlier only one event of type string was possible to return.
This change applies to following XAPP-FRAME APIs: 'handle_events()' and
a callback function registered by the 'subscribe_channel()' call.
Bump XAPP-FRAME-PY version to 2.0.0.
Issue-ID: RIC-699
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ica3c89d5a47451874fbc5ccd9a6b021fd30f6a53
and this project adheres to `Semantic Versioning <http://semver.org/>`__.
and this project adheres to `Semantic Versioning <http://semver.org/>`__.
+[2.0.0] - 2021-06-14
+--------------------
+* Add Xapp registration/deregistration APIs (`RIC-706 <https://jira.o-ran-sc.org/browse/RIC-706>`_)
+* Upgrade SDL 3.0.0 version, SDL scaling (`RIC-699 <https://jira.o-ran-sc.org/browse/RIC-699>`_)
+* Upgrade SDL 3.0.0 version, notification fix (`RIC-795 <https://jira.o-ran-sc.org/browse/RIC-795>`_)
+
+
[1.6.0] - 2020-10-23
--------------------
* Add SDL wrapping API (`RIC-659 <https://jira.o-ran-sc.org/browse/RIC-659>`_)
[1.6.0] - 2020-10-23
--------------------
* Add SDL wrapping API (`RIC-659 <https://jira.o-ran-sc.org/browse/RIC-659>`_)
def handle_events(self):
"""
handle_events is a non-blocking function that returns a tuple containing channel
def handle_events(self):
"""
handle_events is a non-blocking function that returns a tuple containing channel
- name and message received from an event. The registered callback function will
- still be called when an event is received.
+ name and a list of message(s) received from an event. The registered callback
+ function will still be called when an event is received.
This function is called if SDL user decides to handle notifications in its own
event loop. Calling this function after start_event_listener raises an exception.
This function is called if SDL user decides to handle notifications in its own
event loop. Calling this function after start_event_listener raises an exception.
- (channel: str, message: str)
+ (channel: str, message: list of str)
"""
return self._sdl.handle_events()
"""
return self._sdl.handle_events()
setup(
name="ricxappframe",
setup(
name="ricxappframe",
packages=find_packages(exclude=["tests.*", "tests"]),
author="O-RAN Software Community",
description="Xapp and RMR framework for Python",
url="https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/xapp-frame-py",
packages=find_packages(exclude=["tests.*", "tests"]),
author="O-RAN Software Community",
description="Xapp and RMR framework for Python",
url="https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/xapp-frame-py",
- install_requires=["inotify_simple", "msgpack", "mdclogpy", "ricsdl>=2.1.0,<3.0.0", "requests"],
+ install_requires=["inotify_simple", "msgpack", "mdclogpy", "ricsdl>=3.0.0,<4.0.0", "requests"],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Telecommunications Industry",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Telecommunications Industry",
# test is cb called
CALLED = True
assert channel == CH
# test is cb called
CALLED = True
assert channel == CH
+ assert event[0] == EVENT
sdl = SDLWrapper(use_fake_sdl=True)
sdl.subscribe_channel(NS, cb, "channel")
sdl = SDLWrapper(use_fake_sdl=True)
sdl.subscribe_channel(NS, cb, "channel")
nonlocal CALLED
CALLED = True
assert channel == CH
nonlocal CALLED
CALLED = True
assert channel == CH
+ assert event[0] == EVENT
sdl = SDLWrapper(use_fake_sdl=True)
sdl.subscribe_channel(NS, cb, "channel")
sdl = SDLWrapper(use_fake_sdl=True)
sdl.subscribe_channel(NS, cb, "channel")