-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Added ZeroTier backend #208 #272
Conversation
15ae24e
to
c78e68b
Compare
9bf44af
to
b912d2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good progress, please see my comments below @Aryamanz29.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good progress @Aryamanz29! This PR is on the right track. 🚀
0f82d3f
to
b0a83a1
Compare
9211662
to
61b4cc6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aryamanz29 please start adding a draft doc page for the zerotier backend with the most basic points (eg: the configuration format used is the JSON used by the API, initialization parameters, a basic example).
The schema is taken from OpenAPI specification: https://docs.zerotier.com/service/v1/ (self-hosted controllers) https://docs.zerotier.com/openapi/centralv1.json (central controllers) The Zerotier network configuration keys taken from: https://github.com/zerotier/ZeroTierOne/blob/dev/node/NetworkConfig.hpp
- Added propertyOrder to schema.
- Removed redundant OpenAPI schema property 'example'. - Changed backend render json indentation to 4 spaces.
- Added comment to `_generate_contents` method.
The ZeroTier parser should parse VPN configurations with and without comments
cf8555b
to
23f338f
Compare
Prerequisites:
Install Zerotier
Install Ztncui - Web Interface
Get your Zerotier Service API token
sudo cat /var/lib/zerotier-one/authtoken.secret
Tested with openwisp-controller
demo-zerotier.mp4
Todos
Closes #208