openwisp-controller
openwisp-controller copied to clipboard
Network and WiFi controller: provisioning, configuration management and updates, (pull via openwisp-config or push via SSH), x509 PKI management and more. Mainly OpenWRT, but designed to work also on...
Follow up of #643 and #644. If the feature requested in paramiko to pass `preferred_rsa_keys` (https://github.com/paramiko/paramiko/issues/2054) is accepted and implemented, we can get rid of the hack introduced in https://github.com/openwisp/openwisp-controller/commit/062800f28ebf03f6c77c4b4228e8bb0ee3dd00ae,...
We need a solution that allows us to define which commands are available to each org, eg: ``` ENABLE_COMMANDS = { '__all__': ['reboot', 'ping', 'traceroute', 'change_password', 'custom'], '': ['reboot', 'ping',...
Related to #681 (happens while testing that bug). Try opening `http://localhost:8000/admin/config/device/de8fa775-1134-47b6-adc5-2da3d0626c72/history/1564/undefinedadmin/img/icon-deletelink.svg`. Expected result: 404 not found Actual result: 500 internal server error ``` NoReverseMatch: Reverse for 'config_template_download' with arguments '('de8fa775-1134-47b6-adc5-2da3d0626c72/history/1564/undefinedadmin/img/icon-deletelink.svg',)'...
How to replicate in devices: - create a device (or have an existing one created), make sure it has a config - make changes to the config once it's saved...
When SSH connections are attempted, the management IP is tried first, the `last_ip` is tried as last. If both failed, the error reason is the failure to the last IP....
``` FAIL: test_devicegroup_list_api (openwisp2.sample_config.tests.TestConfigApi) [should not contain default or required templates] (0.53s) test_ip_not_in_add_device ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/runner/work/openwisp-controller/openwisp-controller/openwisp_controller/config/tests/test_api.py", line 687, in test_devicegroup_list_api self.assertNotContains(r, t2.name) File "/opt/hostedtoolcache/Python/3.8.13/x64/lib/python3.8/site-packages/django/test/testcases.py", line...
My `curl` command looks like: ```bash curl -X POST "https://openwisp.controller.io/api/v1/controller/device/8cb65d82-dfd8-4a36-94ca-206aec315494/command/" -H "accept: application/json" -H "Authorization: Bearer "some token"" -H "X-CSRFToken: lhYJJWLgB53saQaOZXWMSxYSe38pAghCHFivFYW9TuOpBGFi9ubE2s1OIfplDoGh" -d "{ \"input\": \"echo \"Hello from OpeWISP\" >> /data/data.txt\",...
Closes #521
Earlier the schema.json was bound to each view. No matter how many different switcher were present, it was only loading one of them. With this patch, fetching schema.json is bound...