Skip to content
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

Raspbian Backend #92

Open
wants to merge 183 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 182 commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
a6f1720
[rasbian] Added backend skeleton
May 18, 2017
24eecf4
[raspbian] Added rasbian support to __init__
May 19, 2017
9afcfee
[raspbian] Created Rasbian class definition
May 19, 2017
d45df4c
[raspbian] Added NetworkRenderer and WirelessRenderer
May 19, 2017
871fbac
[raspbian] Modified schema.py
May 19, 2017
30dc5d9
[raspbian] Added template files for wireless and network class
May 19, 2017
849c2ab
[raspbian] Added test files for network and wireless
May 19, 2017
193cbe7
[raspbian] Fixed various typos
May 20, 2017
9bdee87
[raspbian] Initialized jinja templates
May 20, 2017
e29bc0b
[raspbian] dns_severs in NetworkRenderer
May 25, 2017
6f21e53
[raspbian] dns_server in template
May 25, 2017
a08e03d
[raspbian] dns_server in template
May 25, 2017
ab98827
[raspbian] dns_search in NetworkRenderer and template
May 25, 2017
41e7b04
[raspbian] Added test for dns_server
May 25, 2017
d05e685
[raspbian] Added tests for dns_server and dns_search
May 25, 2017
86c0e6f
[raspbian] Added convertors for dns_search and dns_servers
Jun 3, 2017
f22c0de
[raspbian] Fixed flake8 and isort warnings
Jun 3, 2017
e81257a
[raspbian] Removed unnecessary print statements
Jun 4, 2017
dcf64e8
[raspbian] Added tests for resolv converters
Jun 4, 2017
0b3d8ff
[raspbian] Removed temporary template
Jun 4, 2017
040acb9
[raspian] Remove deprecated test files
Jun 5, 2017
cc3e6e7
[raspbian] Initialized documentation page for Raspbian
Jun 5, 2017
a8fadb4
[raspbian] Added converter for Wireless
Jun 6, 2017
15e8137
[raspbian] Added renderers and templates for resolv and hostapd
Jun 7, 2017
1de87e4
[raspbian] Deleted deprecated jinja2 template files
Jun 7, 2017
ddc8303
[raspbian] Added converter for Radio and created a common template fo…
Jun 8, 2017
bfee537
[raspbian] Use camel case for class names
Jun 8, 2017
89d1676
[raspbian] Added converter for interfaces and template for network/in…
Jun 12, 2017
089cbd6
[raspbian] Added support for bridge interface
Jun 12, 2017
621a892
[raspbian] Combined ethernet and bridge template
Jun 12, 2017
a45f003
[raspbian] Added tests for resolv and minor modifications in interfac…
Jun 12, 2017
e4da2d4
[raspbian] Added tests for interfaces
Jun 13, 2017
b276e1f
[raspbian] Fixed bug for simple bridge interface
Jun 13, 2017
d7725a6
[raspbian] Added tests for bridge interface
Jun 13, 2017
ba566ca
[raspbian] Fixed isort and flake8 warnings
Jun 13, 2017
9a7aec1
[raspbian] Modified interface converter to fix multiple interface bug
Jun 14, 2017
1729063
[raspbian] Modified interface coverter for bridge support
Jun 14, 2017
0359d63
[raspbian] Modified template for new intermediate data structure for …
Jun 14, 2017
1fd1ba2
[raspbian] Added tests for interfaces
Jun 15, 2017
4eaaba4
[raspbian] Removed unncessary objects from intermediate data structure
Jun 15, 2017
032867f
[raspbian] Renders section only if config exists
Jun 17, 2017
66ba9d6
[raspbian] Modified tests for new renders
Jun 17, 2017
89d6871
[raspian] Removed allow-hotpug
Jun 17, 2017
6ef27ee
[raspbian] Added initial documentation for Network Interfaces and Bri…
Jun 18, 2017
9036115
[raspbian] Added support for mtu
Jun 18, 2017
49ef8bf
[raspbian] Added support for mac
Jun 18, 2017
cd14605
[raspbian] Added mtu output to tests
Jun 19, 2017
f2688a9
[raspbian] Changed template style
Jun 20, 2017
269b270
[raspbian] Modified tests with new template design
Jun 20, 2017
69214a6
[raspbian] Modified interface template
Jun 21, 2017
42a5860
[raspbian] Added Wireless Configuration support
Jun 26, 2017
09d8fd1
[raspbian] Modified tests with radio settings
Jun 27, 2017
42c823c
[raspbian] Added support for radio settings
Jun 27, 2017
1a72b52
[raspbian] Combined hostapd.conf with template
Jun 27, 2017
fde55d1
[raspbian] Fixed bug with missing encryption block
Jun 27, 2017
08b966b
[raspbian] Removed wmm as default from template
Jun 27, 2017
049e36e
[raspbian] Modified hostapd tests by removing default wmm
Jun 27, 2017
fd8e458
[raspbian] Documentation on wireless configuration
Jun 27, 2017
907dae2
[raspbian] Modified ieee80211n protocol
Jun 28, 2017
6deabd5
[raspbian] Added support for AdHoc mode
Jun 28, 2017
8d80e91
[raspbian] Fixed render error
Jun 28, 2017
6ca6bb3
[raspbian] Added documentation on adhoc
Jun 28, 2017
bd90621
[raspbian] Added test for Adhoc mode
Jun 28, 2017
f1094fe
[raspbian] Fixed isort and flake8 errors
Jul 1, 2017
95e3445
[raspbian] Refactored interfaces converter
Jul 3, 2017
db1e1d0
[raspbian] Modifed template for updfated intermediate_data
Jul 3, 2017
96c6149
[raspbian] Removed old commented interfaces converter
Jul 3, 2017
44ae72b
[raspbian] Added adhoc support
Jul 3, 2017
288f01a
[raspbian] Seprated main loop for each config file in template
Jul 3, 2017
56e1e99
[raspbian] Fixed single dns_search template rendering
Jul 3, 2017
75f53d4
[raspbian] Added support for NTP
Jul 4, 2017
cb92bde
[raspbian] Fix isort and flake8 errors
Jul 4, 2017
839f346
[raspbian] Added documentation for NTP settings
Jul 5, 2017
5dc6fa9
[raspbian] Added converter/template/tests for general settings
Jul 6, 2017
1de1fec
[raspbian] Added documentation for general settings
Jul 6, 2017
e3abeec
[raspbian] Created seprate files for each converter
Jul 7, 2017
017a9ae
[raspbian] Skipped unimplemented tests
Jul 12, 2017
67ca7d9
[raspbian] Added tests for mtu and mac
Jul 12, 2017
310524c
[raspbian] Added support for multiple template rendering
Jul 12, 2017
5a419d7
[raspbian] isort and flake8 errors
Jul 12, 2017
26047d1
[raspbian] Changed template format
Jul 13, 2017
2035653
[raspbian] Remove render method from Raspbian backend
Jul 13, 2017
880195f
[raspbian] Added support for 802.11ac
Jul 13, 2017
27158a4
[raspbian] Added tests for radio settings
Jul 13, 2017
8a1ecda
[raspbian] Improve readability of templates
Jul 16, 2017
b8e491e
[raspbian] Added support for generating tar.gz file
Jul 16, 2017
57b2b33
[raspbian] Added tests for generate and write methods
Jul 17, 2017
8b753f1
[raspbia] Added documentation for write and generate method
Jul 17, 2017
9ea9364
[raspbian] Improved interfaces jinja2 template
Jul 18, 2017
8319e00
[raspbian] Added support for ipv4 static routes
Jul 19, 2017
e96f61a
[raspbian] Fixed isort and flake8 errors
Jul 19, 2017
248a3a4
[raspbian] Added support for manual mode in interfaces
Jul 19, 2017
8103382
[raspbian] Further modified static routes implementation
Jul 19, 2017
295828b
[raspbian] Added support for ipv6 static routes
Jul 19, 2017
32818d0
[raspbian] Added tests for static routes
Jul 19, 2017
c8558a9
[raspbian] Simplifed jinja2 templates
Jul 19, 2017
2cfdf6e
[raspbian] Removed extra argument
Jul 20, 2017
6b8b59c
[raspbian] Removed wps test
Jul 20, 2017
67a94ca
[raspbian] Reduced complexity of Interfaces converter
Jul 20, 2017
712a0f6
[raspbian] Fixed interfaces jinja2 template
Jul 20, 2017
2f3cfda
[raspbian] Refactored template
Jul 20, 2017
c7d6522
[raspbian] Added multi interfaces tests
Jul 20, 2017
fcb45cb
[raspbian] Improved readability of templates
Jul 20, 2017
e9938c4
[raspbian] Fix flake8 error
Jul 20, 2017
9c55b2c
[raspbian] Updated documentation examples
Jul 21, 2017
8c62ef5
[raspbian] Updates documentation
Jul 23, 2017
588bc45
[raspbian] Updated tests
Jul 24, 2017
bd98880
[raspbian] Renamed test classname
Jul 24, 2017
e7288fe
[raspbian] Fixed typo
Jul 24, 2017
404db8a
[raspbian] Updated documentation
Jul 24, 2017
6946ae9
[raspbian] Added initial schema for backend
Jul 24, 2017
62223e4
[raspbian] Renamed template
Jul 25, 2017
3906c5f
[raspbian] Generate scripts files
Jul 25, 2017
387087d
[raspbian] Updated tests for recent changes
Jul 25, 2017
8198425
[raspbian] Added tests for scripts
Jul 25, 2017
71718cf
[raspbian] Changed variable names
Jul 25, 2017
96c0e88
[raspbian] Fix isort warning
Jul 25, 2017
92407fd
[raspbian] Added default value to autostart
Jul 25, 2017
cc2d2e1
[raspbian] Fixed autostart default value
Jul 25, 2017
f40e85a
[raspbian] Updated schema
Jul 25, 2017
450da4b
[raspbian] Updated schema
Jul 25, 2017
cf579b8
[raspbian] Updated schema
Jul 26, 2017
b8cb824
[raspbian] Added rts_threshold, frag_threshhold and hidden wireless s…
Jul 26, 2017
bda6e72
[raspbian] Set additionalProperties back to default
Jul 26, 2017
9c0eee7
[raspbian] Fix flake8 warnings
Jul 26, 2017
a13b982
[raspbian] Added stp setting in bridge interface
Jul 26, 2017
0e403a9
[raspbian] Added country in radio settings
Jul 26, 2017
7a63ab1
[raspbian] Updated test
Jul 26, 2017
1b7edd4
[raspbian] Added wpa_supplicant template
Jul 26, 2017
89f8809
[raspbian] Added support for station mode
Jul 26, 2017
4d18eb0
[raspbian] Added tests for wpasupplicant
Jul 26, 2017
5fa829d
[raspbian] Updated schema
Jul 26, 2017
09736ea
[raspbian] Refactored wireless converter
Jul 27, 2017
528ff71
[raspbian] Fixed isort warning
Jul 28, 2017
0545fe1
[raspbian] Removed unsupported values from schema
Jul 28, 2017
168d792
[raspbian] Created a deepcopy of schema before modification
Jul 28, 2017
37e14fb
[raspbian] Added NONE value to key_mgmt
Jul 31, 2017
43d4b82
[raspbian] Added support WPA2 Enterprise Mode (Client)
Jul 31, 2017
55ff9dc
[raspbian] Updated render methods example
Aug 1, 2017
1aef4d8
[raspbian] Updated loopback interface output
Aug 1, 2017
067c2e1
[raspbian] Removed loopback section from docs
Aug 1, 2017
836d44a
[raspbian] Fixed autostart output
Aug 2, 2017
7b4ba06
[raspbian] Added test for autostart
Aug 2, 2017
52d7060
[raspbian] Remove old commented code
Aug 2, 2017
51eef52
[raspbian] Added support for WEP Station mode
Aug 4, 2017
f6dbdf4
[raspbian] Updated wep station mode
Aug 4, 2017
879a0e7
[raspbian] Added tests for wep station mode
Aug 4, 2017
4508403
[raspbian] Reduce _get_encryption complexity
Aug 7, 2017
e0e82fb
[raspbian] Updated converter and template for multiple static routes
Aug 7, 2017
e5a2acd
[raspbian] Added tests for multiple static routes
Aug 7, 2017
65f4a9b
[raspbian] Fixed multiple static routes output
Aug 7, 2017
7c07e9d
[raspbian] Added tests for dhcp interface static routes
Aug 7, 2017
6165704
[raspbian] Remove unnecessary output from template
Aug 9, 2017
a3ad9b6
[raspbian] Added support for macaddr acl in wireless settings
Aug 9, 2017
49a48ab
[raspbian] Generate mac list config file
Aug 9, 2017
d9961e8
[raspbian] Updated hostapd template and created new template for maca…
Aug 9, 2017
ae16a60
[raspbian] Addded tests for macaddr acl
Aug 9, 2017
98c919e
[raspbian] Added macfilter and maclist to schema
Aug 10, 2017
fdc7a15
[raspbian] Fixed isort warning
Aug 10, 2017
418f20d
[raspbian] Added support for wmm and isolate in wireless settings
Aug 10, 2017
884aa4c
[raspbian] Added wmm and isolate to schema
Aug 11, 2017
c20333a
[raspbian] Changed macfilter value
Aug 11, 2017
ea3d408
[raspbian] Added additional files to schema
Aug 11, 2017
e32da72
[raspbian] Updated documentations examples
Aug 13, 2017
660cfba
[raspbian] Renamed reserved variable
Aug 13, 2017
33ec6dc
[raspbian] Added support for WPA-EAP mode
Aug 14, 2017
0515934
[raspbian] Added tests for WPA Enterprise
Aug 14, 2017
4b878e5
[raspbian] Added experimental warning
Aug 15, 2017
94b3d3f
[raspbian] Reduce _get_encryption complexity
Aug 15, 2017
8c117b8
[raspbian] Added _get_cipher and _update_radio definitions
Aug 15, 2017
f89e2cf
[raspbian] Updated experimental warning
Aug 19, 2017
5f3e675
[raspbian] Removed wps ap mode from schema
Aug 19, 2017
f4c3328
[raspbian] Updated tests for wep
Aug 21, 2017
01264b6
[raspbian] Added support for wep mode
Aug 21, 2017
fa3f9f9
[raspbian] Consistency with other backends
Aug 24, 2017
8040a51
[raspbian] Updated experimental warning
Aug 24, 2017
89066bf
[raspbian] Remove unnecessary pass statement
Aug 24, 2017
3bdfdfc
[raspbian] Update documentations
Aug 26, 2017
6be2412
[raspbian] Simplify dnsmasq configuration in docs
Aug 27, 2017
e582248
[raspbian] Updated documentations
Aug 29, 2017
eade0a9
[raspbian] Fix py2-ipaddress related unicode bug
Aug 29, 2017
6247cd7
[raspbian] Fix flake8 warning
Aug 29, 2017
26a4087
[docs] Updated github stars and fork buttons #154
nemesifier May 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/netjsonconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ output = parser.add_argument_group('output')

output.add_argument('--backend', '-b',
required=True,
choices=['openwrt', 'openwisp', 'openvpn'],
choices=['openwrt', 'openwisp', 'openvpn', 'raspbian'],
action='store',
type=str,
help='Configuration backend')
Expand Down Expand Up @@ -169,7 +169,7 @@ method_arguments = parse_method_arguments(args.args)
backends = {
'openwrt': netjsonconfig.OpenWrt,
'openwisp': netjsonconfig.OpenWisp,
'openvpn': netjsonconfig.OpenVpn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the openvpn key removed?

'raspbian': netjsonconfig.Raspbian
}

backend_class = backends[args.backend]
Expand Down
Loading