prf::net::pool::cfg::Ipv4PoolStaticConfig struct final

Normalized parsed configuration of one pool section.

The same structure is used for both static and dynamic pools. Dynamic pools ignore the static address fields and instead use source_interface to bind to a runtime publisher such as np2.

Public variables

bool dns_active
true when DNS server is configured.
uint32_t dns_server
Optional DNS server within same subnet.
bool enabled
true when the pool is enabled in config.
uint32_t gateway
Optional gateway within same subnet.
bool gateway_active
true when gateway is configured.
uint32_t ip_size
Number of addresses in static pool.
uint32_t ip_start
First IPv4 address for static pools.
uint16_t max_allocations
Maximum number of runtime allocation entries reserved for this pool.
std::string source_interface
Name of runtime source interface for dynamic pools, e.g. np2.
uint32_t subnet_mask
Subnet mask for static pool.
PoolType type
Pool addressing mode.