-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional wireless settings (#1602)
## Problem Network model was missing some required fields for the wicked migration. ## Solution Added the required fields to both the model and settings. I've also added some fields present in the model to be available via the settings. ## Testing - *Extended existing unit tests* - *Tested manually* ```bash sudo agama auth login && AGAMA_TOKEN=`sudo agama auth show` curl http://localhost/api/network/connections \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $AGAMA_TOKEN" \ -d '{ "id": "wifi", "method4": "auto", "method6": "auto", "ignoreAutoDns": false, "wireless": { "security": "wpa-psk", "ssid": "test-ssid", "mode": "infrastructure", "groupAlgorithms": [ "wep40", "wep104" ], "pairwiseAlgorithms": [ "tkip", "ccmp" ], "wpaProtocolVersions": [ "wpa" ], "pmf": 2, "hidden": true, "band": "a", "channel": 100, "bssid": "12:34:56:78:9A:BC" }, "status": "down" }' curl -X POST http://localhost/api/network/system/apply \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $AGAMA_TOKEN" nmcli con show wifi # See relevant fields in 802-11-wireless.* and 802-11-wireless-security.* set. ```
- Loading branch information
Showing
6 changed files
with
456 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.