-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autoconnect property for network connections (#1715)
## Problem Missing autoconnect property for network connections. ## Solution Add autoconnect property. ## Testing - *Extended unit test* - *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": "testcon", "method4": "auto", "method6": "auto", "ignoreAutoDns": false, "status": "down", "autoconnect": false }' curl -X POST http://localhost/api/network/system/apply \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $AGAMA_TOKEN" nmcli con show testcon # See autoconnect set to "no". ```
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 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
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