Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • oai-cn5g-pcf oai-cn5g-pcf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • oaioai
  • cn5gcn5g
  • oai-cn5g-pcfoai-cn5g-pcf
  • Merge requests
  • !18

Created generic configuration framework to be used by all NFs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Stefan Spettel requested to merge refactor_config into develop Dec 20, 2022
  • Overview 78
  • Commits 22
  • Pipelines 12
  • Changes 22

Code Changes

  • Created generic configuration framework where configuration values are stored in an unordered_map
  • Defined common configuration types: String, bool (support features), local interface, local SBI interface, remote SBI interface
  • Split code into NF-specific configuration and common configuration framework:
    • Set default values
    • Set mandatory values
    • Set member variables to not break old API (can be refactored further in the future)
  • Create YAML parser for new types with yaml-cpp
  • Read YAML file instead of libconfig

Config Changes

  • Defined YAML configuration file
  • Removed old configuration
  • Split HTTP1 and HTTP2 interface in configuration (supports different interfaces/IPs now)
  • Removed unused values:
    • Instance ID
    • PID directory
    • slice configuration

Build Changes

  • Removed libconfig build requirement in build scripts and Dockerfiles

Tests

  • Tested NRF registration/de-registration manually
  • API tested using the CURL requests described in Wiki
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: refactor_config