Dynamic providers¶
A policy can declare a dynamic provider alongside static configuration. netfyr validates these declarations but cannot run the providers yet.
DHCPv4¶
Place DHCPv4 parameters under ipv4.dhcp4:
kind: policy
name: dhcp
match:
name: eth0
ipv4:
dhcp4:
send-hostname: true
route-metric: 100
Both parameters are optional; dhcp4: {} uses neither.
| Parameter | Accepted value |
|---|---|
send-hostname |
Boolean |
route-metric |
Integer greater than or equal to 0 |
Unknown DHCPv4 parameters are rejected. Static ipv4.addresses and ipv4.dhcp4
can appear in the same policy; the loader keeps the static configuration and
provider declaration separate.
IPv6 declarations¶
netfyr also accepts declarations under ipv6.dhcp6 and ipv6.ra for DHCPv6
and router advertisements.
Their parameter maps have no defined fields yet.