|
|
|
# SMF Installation
|
|
|
|
|
|
|
|
Tested and validated on Ubuntu Bionic arch amd64.
|
|
|
|
|
|
|
|
## Download OAI SMF source code
|
|
|
|
|
|
|
|
```
|
|
|
|
ubuntu@test-smf:~$ git clone https://gitlab.eurecom.fr/oai/oai-cn5g-smf.git
|
|
|
|
...
|
|
|
|
```
|
|
|
|
|
|
|
|
## Install SMF
|
|
|
|
|
|
|
|
### Install SMF software dependencies
|
|
|
|
|
|
|
|
> - [Facebook folly](https://github.com/facebook/folly)
|
|
|
|
> - [Spdlog](https://github.com/gabime/spdlog)
|
|
|
|
> - [Pistache](http://pistache.io/)
|
|
|
|
> - [Nlohmann Json](https://github.com/nlohmann/json)
|
|
|
|
|
|
|
|
```
|
|
|
|
ubuntu@test-smf:~$ cd oai-cn5g-smf/
|
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf$ cd ./build/scripts
|
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/build/scripts$ ./build_smf -I -f
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build SMF
|
|
|
|
|
|
|
|
As a starting point, you can start with a Debug build, then you can change the build type
|
|
|
|
Check build types with './build_smf -h'
|
|
|
|
|
|
|
|
```
|
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/build/scripts$ ./build_smf -c -V -b Debug -j
|
|
|
|
```
|
|
|
|
|
|
|
|
## SMF Configuration
|
|
|
|
|
|
|
|
|
|
|
|
**Create SMF configuration files**
|
|
|
|
|
|
|
|
```
|
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/build/scripts$ ./smf_conf.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
Important:
|
|
|
|
Customize in /usr/local/etc/oai/smf.conf file the necessary information.
|
|
|
|
|
|
|
|
**Configuration example**
|
|
|
|
|
|
|
|
More detailed explanation for the SMF configuration is available in the section [SMF configuration](smf_configuration)
|
|
|
|
|
|
|
|
|