As as I am trying to move all my settings to be set by Terraform I noticed that I am not able to set the dchp-server. This are the commands (derived from the getting started documentation):
set service dhcp-server shared-network-name LAN subnet 192.168.200.0/24 default-router '192.168.200.1'
set service dhcp-server shared-network-name LAN subnet 192.168.200.0/24 name-server '192.168.200.1'
set service dhcp-server shared-network-name LAN subnet 192.168.200.0/24 domain-name 'vyos.net'
set service dhcp-server shared-network-name LAN subnet 192.168.200.0/24 lease '86400'
set service dhcp-server shared-network-name LAN subnet 192.168.200.0/24 range 0 start 192.168.200.9
set service dhcp-server shared-network-name LAN subnet 192.168.200.0/24 range 0 stop '192.168.200.254'
The problem is the range which is mandatory - it has to be set the same commit as the rest.
I might have overseen how to do it but if we would allow config to be an array of path,value tuples then we could use the support in the vyos API to execute multiple sets in the same session:
I can help with a PR - I am familiar with golang and terraform but not with building local providers - but I should be able to tackle it if you are interested.
Thanks for your provider!
As as I am trying to move all my settings to be set by Terraform I noticed that I am not able to set the
dchp-server
. This are the commands (derived from the getting started documentation):The problem is the range which is mandatory - it has to be set the same commit as the rest.
I might have overseen how to do it but if we would allow config to be an array of path,value tuples then we could use the support in the vyos API to execute multiple sets in the same session:
I can help with a PR - I am familiar with golang and terraform but not with building local providers - but I should be able to tackle it if you are interested.