cfg namespace
Namespaces
- namespace validators
Classes
- struct NprConfigSectionDefinition
- NPR section schema definition used by typed config facade.
Enums
Typedefs
-
using NprConfigSection = prf::
config:: TypedConfigSection<NprConfigSectionDefinition> - Typed wrapper for NPR configuration section.
Functions
- auto default_requested_ip_pool_size() -> uint64_t
- Computes default requested IP pool size from build-time option.
- auto default_role() -> std::string
- Default role for current runtime.
- auto effective_master_pool(const NprConfigSection& section) -> std::string
- Returns pool section name used by NPR master for IP allocation.
- auto effective_role(const NprConfigSection& section) -> NprRole
- Parses effective NPR role from typed config.
- auto effective_slave_ip_pool(const NprConfigSection& section) -> uint64_t
- Returns slave requested pool size.
-
auto make_npr_section_schema(const std::string& section_name) -> prf::
config:: SectionSchema - Convenience helper that builds NPR section schema by section name.
Variables
- uint64_t kMinRequestedIpPoolSize constexpr
- Minimum IP pool size used by NPR client requests.
Enum documentation
enum class npr:: cfg:: NprRole: uint8_t
#include <npr/config.hpp>
Supported NPR runtime roles.
Typedef documentation
using npr:: cfg:: NprConfigSection = prf:: config:: TypedConfigSection<NprConfigSectionDefinition>
#include <npr/config.hpp>
Typed wrapper for NPR configuration section.
Function documentation
uint64_t npr:: cfg:: default_requested_ip_pool_size()
#include <npr/config.hpp>
Computes default requested IP pool size from build-time option.
Keeps backward compatibility with older build configs that used smaller values.
std::string npr:: cfg:: default_role()
#include <npr/config.hpp>
Default role for current runtime.
std::string npr:: cfg:: effective_master_pool(const NprConfigSection& section)
#include <npr/config.hpp>
Returns pool section name used by NPR master for IP allocation.
NprRole npr:: cfg:: effective_role(const NprConfigSection& section)
#include <npr/config.hpp>
Parses effective NPR role from typed config.
uint64_t npr:: cfg:: effective_slave_ip_pool(const NprConfigSection& section)
#include <npr/config.hpp>
Returns slave requested pool size.
prf:: config:: SectionSchema npr:: cfg:: make_npr_section_schema(const std::string& section_name)
#include <npr/config.hpp>
Convenience helper that builds NPR section schema by section name.
Variable documentation
uint64_t npr:: cfg:: kMinRequestedIpPoolSize constexpr
#include <npr/config.hpp>
Minimum IP pool size used by NPR client requests.
Current runtime policy requires at least two addresses:
- first address is consumed by USB service interface (us0) in DHCP mode
- remaining addresses can be delegated to DHCP clients/dependent services