gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.4k stars 547 forks source link

defaultnetrange/defaultnetname aren't used #155

Closed mrobinsn closed 3 years ago

mrobinsn commented 3 years ago

I'm trying to change the default network setting on startup, but the defaultnetname & defaultnetrange settings in the dev.yaml don't seem to actually change anything.

Doesn't seem like those options are even wired into the code: https://github.com/gravitl/netmaker/blob/master/config/config.go#L37

Am I missing something or is this feature just not supported yet?

afeiszli commented 3 years ago

As of now those options are hardcoded. Can you please expand on your use case?

You can delete the default network after startup and replace it with your own network, but understand that this might be needed for some automation.

mrobinsn commented 3 years ago

Essentially I wanted a network to be created automatically after installation with a specific range and name.

I was able to work around by using a combination of MASTER_KEY and the API 👍