As the peer->remote_host is initially NULL when creating a CBC peer,
the code should tolerate this. The situation arises in two cases:
* if a peer is created by VTY but without any subequent 'remote-ip'
statement
* if a peer is auto-created by 'unknown-peers accept'
Closes: OS#5506
Change-Id: I455e61f379f042680cdd2600a08d57a1ea22897c
When the BSC returns a KILL COMPLETE or KILL FAIL, append the contained
lists (number of broadcasts completed list, fail list, ...) to update
the state of the CBC.
Change-Id: Iabe5b4e6a238597455294bf91759d4dc6e90d660
The channel Indicator IE shall be present if the KILL relates to a
CBS message. Its absence indicates KILL for ETWS/PWS.
Change-Id: I11bfac3236d7cf1e30ae5bae0abcbd72531ab5cd
Related: SYS#5906, OS#5540, OS#5541
This example is not any better than just using '-c /dev/null'.
Add some default parameters taken from 'show running-config'.
Change-Id: I6dca38a2220c32fad96237d7522a300f12b4469e
So far we couldn't depend on proper versions as they had not been
released yet. Now they do, so we can add the respective dependencies
Change-Id: I0573a151f55488599a01ea9dfdcfa02396cd6c35
We need to use the matching enum values if we actually want to
match correctly. Before this patch, the Cell List Items in CBSP
were encoded wrongly.
Change-Id: Iea3e2a28573baaead308eb9c8475c6b8093d0b48
The "required" parameter to argparse.add_subparsers() was only
added in python 3.7. However, given that it defaults to 'required'
and was always unconditionally required even in python 2.x,
we can safely remove it.
Change-Id: Ia0ffca055f47016fb29ef009acecac2a139e4077
The VTY code should write/save only those peers that were configured
using the VTY.
Closes: OS#4929
Change-Id: If02694be4e4cb9cb27e7d9d07e533bfed4a999a9
We don't want osmo-cbc to depend on python3 at runtime, so let's use
a sub-package for osmo-cbc-apitool.py
Change-Id: Id16613811993a2baa06ebc2da6c6591ace70a3f9
Do away with most of the hard-coded defaults and allow user to specify
a variety of parameters via the command line. Also, start to use
argparse subparsers for better usability
Change-Id: Ib7b8121676bef9310f219affc6f3cc76b6986b2a
USSD messages are sent in pages of 82 bytes, and there is no way to
indicate a shorter payload length inside the page. Hence, we always
must pad up to the end of the page, using <CR> characters.
Change-Id: I9950431e920579e6c3a0d12348573f51d21739ec
* when the message_peer FSM times out, we msut notify the message_fsm
* when waiting for DELETE_ACK, require all message_peer FSM instances to
enter DELETE state before signaling completion
Change-Id: Ibff5e25ebb34843c4b3165329f432892ac6a6ef5