Commit Graph

25 Commits

Author SHA1 Message Date
Harald Welte 2181d644bc manuals: generate vty reference xml at build time
Rremove osmo-stp_vty_reference from the source tree.

In manuals/Makefile.am use the new BUILT_REFERENCE_XML feature recently added
to osmo-gsm-manuals, and add a build target to generate the XML using the new
osmo-stp --vty-ref-xml cmdline switch.

Change-Id: I5bcbbdf7b737d2ce36ea877bc78c8cf191a64e1b
Depends: I613d692328050a036d05b49a436ab495fc2087ba
Related: OS#5041
2021-02-23 17:20:08 +01:00
Pau Espin 531ba5d729 Revert "Revert "Introduce SS7 IPv6 support""
Actual fix for the issue is applied in next commit.

This reverts commit ee81289297.

Change-Id: I8b66dd97f47f1b2b72c101b9ce4444e75eb744c0
2020-08-28 17:14:29 +02:00
Neels Hofmeyr ee81289297 Revert "Introduce SS7 IPv6 support"
This reverts commit 0b39f2cf7b.

Reason for revert:

Breaks ttcn test suites (at least for osmo-bsc) with osmo-stp error log:
"MTP-TRANSFER.req for DPC 187: no route!"

The breakage is fixed by only reverting the NULL -> "localhost" change
back to NULL. But the commit log indicated a reason for this, so rather
reverting the entire commit for now.

Change-Id: Ia97832f4e3ed646457d5c6eeba27352f1153edec
2020-08-28 08:10:06 +00:00
Pau Espin 0b39f2cf7b Introduce SS7 IPv6 support
In osmo_ss7_vty_go_parent, "127.0.0.1" is changed to "localhost" to let
local NSS decide whether to use IPv4 or IPv6. In newish systems, IPv6
::1 will be selected since IPv6 takes precedence over IPv4.

Similarly, the default source addr needs to be changed from NULL to "localhost"
since for some yet unknwon reason, getaddrinfo(AF_UNSPEC, NULL) returns
first IPv4 "0.0.0.0" and later "::", which is inconsistent with
getaddrinfo("localhost") result, resulting in src=IPv4(0.0.0.0) and
dst=IPv6(::1), which is incompatible and will fail.
In any case, this change doesn't affect users of osmo_sccp_simple_client
because the APIs set both src and dst addresses.

Change-Id: I69c48819b70635c92fa404cafd917af7802d517c
Depends: libosmo-netif.git Change-Id Ie6bb17a9af6ca21d5e350f9c9d2d74c97c5a00af
2020-08-24 10:34:38 +02:00
Pau Espin 002197560d Support setting rt-prio and cpu-affinity mask through VTY
Depends: libosmocore.git Change-Id If76a4bd2cc7b3c7adf5d84790a944d78be70e10a
Depends: osmo-gsm-masnuals.git Change-Id Icd75769ef630c3fa985fc5e2154d5521689cdd3c
Related: SYS#4986
Change-Id: Ib9faa68c1cd09a026909c792a1fd5557c9893fe3
2020-08-20 08:41:36 +00:00
Pau Espin 661c555729 doc: Update VTY reference xml file
Change-Id: I83312c3f22af54db346f4babc9470ff9432ceae4
2020-08-20 08:41:31 +00:00
Philipp Maier ed01782610 doc: make sure all log categories are set to level notice
Lets make sure all logging levels are set to notice

Change-Id: I3b17aa4354f30b55da8fc77f4fe6af0373de7983
2020-05-12 11:29:18 +00:00
Harald Welte a9ff416745 don't use 'debug' log level in example configs
Related: OS#2577
Change-Id: I16807f827f958d48519871355115715b753edfcb
2020-03-19 14:15:30 +00:00
Pau Espin 2c3ff8c81b tests: Introduce test for multi-homing STP features
Config file sets omo-stp instance to bind on 2 IP addresses, and then
the test verfies through linux /proc/net/sctp/* that binding is done
correctly and that it can be reached from another remote address to one
of the configured addresses.

Change-Id: Ifa11b1fc882dff415405f62024e94bed67228866
2019-10-22 19:38:53 +00:00
Daniel Willmann abcb3898ed manuals: Update vty documentation
Related: OS#1700
Change-Id: I2061d7883f5457ec8c53358dc6089daaf60c67c3
2019-06-19 11:58:17 +02:00
Daniel Willmann 298e6a74d8 manuals: Add script to regenerate vty/counter documentation
Related: OS#1700
Change-Id: I9978d04fec68d6a8e17caa3c88c1020cf3a348ac
2019-06-19 11:58:17 +02:00
Oliver Smith 1ae52d1a65 debian: create -doc subpackage with pdf manuals
I have verified, that the resulting debian packages build in my own OBS
namespace (see the -doc packages):
https://download.opensuse.org/repositories/home:/osmith42/Debian_9.0/all/
https://build.opensuse.org/project/show/home:osmith42

Depends: Ib7251cca9116151e473798879375cd5eb48ff3ad (osmo-ci)
Related: OS#3899
Change-Id: I1f412953e60c10e6146327a90edbd18d738e1365
2019-05-29 12:14:05 +02:00
Oliver Smith b7237b139d build manuals moved here from osmo-gsm-manuals.git
Moved to doc/manuals/, with full commit history, in preceding merge commit.
Now incorporate in the build system.

Build with:

$ autoreconf -fi
$ ./configure --enable-manuals
$ make

Shared files from osmo-gsm-manuals.git are found automatically if
- the repository is checked out in ../osmo-gsm-manuals; or
- if it osmo-gsm-manuals was installed with "make install"; or
- OSMO_GSM_MANUALS_DIR is set.

Related: OS#3385
Change-Id: Ib5a22c2ea81fdde036bf9efb47d785a830b88c93
2018-11-27 18:46:32 +01:00
Neels Hofmeyr 2162f5d89e Merge history from osmo-gsm-manuals.git
Change-Id: Iabd0af069f00e7827a7793aabfc38a14fb7f1570
2018-11-27 18:46:19 +01:00
Neels Hofmeyr e6a0409d6e stp: update vty reference with added SCCP commands
After I66e97706de0c546db3c6ff77fb5e6ac6e32bff55 which adds the missing
sccp_vty_init(), update VTY reference with the new SCCP show / config commands.

Depends: I66e97706de0c546db3c6ff77fb5e6ac6e32bff55
Change-Id: Id941b8e31d3b4cfdb3f912beedc1e7af321a0113
2018-11-27 18:46:12 +01:00
Neels Hofmeyr 3508df2200 stp: update vty reference
Change-Id: Id5f1067760db7a11ec380a541bfe7357a21a3bb3
2018-11-27 18:46:12 +01:00
Harald Welte fcc95f960b vty-ref: Update URI of docbook 5.0 schema
... to match the /etc/xml/catalog file on debian (no "www" in hostname)

Change-Id: Id9f3579c7f2bc3af13fe30b5268f249b6f59ed0d
2018-11-27 18:46:12 +01:00
Neels Hofmeyr 5fab07911d OsmoSTP: update VTY reference
This is the first update since the libosmocore changes to the 'show
online-help' generated output. Hence the produced document now benefits from
the structural improvements:
- not repeating common commands for every node;
- using section names that match the VTY prompt.

Change-Id: I98cdfcb6c1c7db49ab106e775be92e4c6adeab17
2018-11-27 18:46:12 +01:00
Harald Welte 51ef55b6d4 STP: Update vty reference XML file
This ensures useful content in the STP vty reference manual

Change-Id: Ica4b1c0172255ec2328562fdd8fac190e3ad448d
2018-11-27 18:46:12 +01:00
Harald Welte 46c4b92926 First step towards an OsmoSTP manual
Change-Id: I450bfac7444ac9cb7f50c086d87cf7157c2e2a31
2018-11-27 18:46:12 +01:00
Harald Welte edfd86b295 osmo-stp.cfg: Ensure example config is well-formed
Change-Id: I042486249ae1390a4fedbcf356e488451277788f
2018-09-25 20:14:08 +02:00
Pau Espin 13d47c043b Install sample cfg file to /etc/osmocom
Change-Id: I437e6ada9f391eece75b2f2e2af3bec4e8e9f6ce
2018-09-12 16:12:54 +02:00
Pau Espin b241a26449 build: Install example cfg files
Change-Id: I93b73032b9a01a1e121ecf7c0cfcf3d5558efc7f
2018-07-02 16:44:39 +02:00
Harald Welte bc4257867b osmo-stp: Remove hack to always enable debug logging
... and rather use the config file based logging configuration, like
other osmocom programs, too.

Change-Id: I7e0fb869bd778d8c276dc8afd16ecd7f1965b74a
2017-04-14 17:11:21 +02:00
Harald Welte 8cf687b2dc Add exampel osmo-stp configuration file
Change-Id: I45a04dc808e5a419bf5d68eb28c48cbec352b318
2017-04-14 17:11:21 +02:00