Open ya-zero opened 3 years ago
its work gateway, service addr, disable dhcp
but not set dns nameserver
in role
dns_nameservers: [10.1.2.11,10.1.2.12]
--ansible task logs "item": { "key": "peering", "value": { "default_gateway": "10.10.32.1", "dns_nameservers": [ "10.7.21.11", "10.7.21.12" ], "dns_server_address": "10.10.32.2", "enable_dhcp": false,
p.s. if set dns nameserver request curl -X , i'm send json
'{"virtual-network": {"parent_type": "project", "fq_name": ["default-domain", "admin", "test_api"],"import_route_target_list": {"route_target": ["target:64512:201"]}, "export_route_target_list": {"route_target":["target:64512:202"]}, "network_ipam_refs": [{"attr": {"ipam_subnets": [{"subnet": {"ip_prefix": "10.1.1.0", "ip_prefix_len": 24}, "default_gateway": "10.1.1.1","dns_serveraddress": "10.1.1.2",**"dhcp_option_list": {"dhcp_option": [{ "dhcp_option_name": "6", "dhcp_optionvalue": "10.1.2.11 10.1.2.12" }]}**}]}, "to": ["default-domain", "default-project", "default-network-ipam"]}]}}'
Hi,
Thanks for the json payload :)
I updated the module to fix dns_nameservers behavior.
Could you try the latest version?
Best Regards,
Ok, DNS nameserver is configured. But if you send update task, dns is not added, just delete and create. Is this how it should work?
need add attr for dns server ip list