tnaganawa / ansible-collections-tungstenfabric

ansible module for tungstenfabric
Apache License 2.0
3 stars 1 forks source link

dns servers ip #2

Open ya-zero opened 3 years ago

ya-zero commented 3 years ago

need add attr for dns server ip list

ya-zero commented 3 years ago

its work gateway, service addr, disable dhcp image

but not set dns nameserver image

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"]}]}}'

tnaganawa commented 3 years ago

Hi,

Thanks for the json payload :)

I updated the module to fix dns_nameservers behavior.

Could you try the latest version?

Best Regards,

ya-zero commented 3 years ago

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?