Ipv4PoolStaticConfig struct final
#include <net/pool/pool_config.hpp>
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
truewhen DNS server is configured.- uint32_t dns_server
- Optional DNS server within same subnet.
- bool enabled
truewhen the pool is enabled in config.- uint32_t gateway
- Optional gateway within same subnet.
- bool gateway_active
truewhen 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.