Example has been included as `examples/dns_edit_eth1.yml` and `examples/dns_remove.yml`. If DNS section not defined in desire state, old DNS configuration will be perceived, otherwise, old DNS configuration will be fully override with desired state. Partial editing of DNS entries is not supported. To remove static DNS configuration, Please use this state: ```python { DNS.KEY: { DNS.CONFIG: {} } } ``` Limitation: * Only support saving DNS configuration to state default gateway interfaces. If not found, NmstateValueError exception will be raised. When DNS config not changed, no DNS changes will be made to profiles. Unit and integration test cases has been included. Signed-off-by: Gris Ge <fge@redhat.com>
5 lines
46 B
YAML
5 lines
46 B
YAML
---
|
|
dns-resolver:
|
|
config: {}
|
|
interfaces: []
|