-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
system networking allow-list cli (#658)
- Loading branch information
Showing
13 changed files
with
1,219 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"allowed_ips": { | ||
"allow": "any" | ||
}, | ||
"time_created": "2018-11-14T19:07:30Z", | ||
"time_modified": "2018-11-14T19:07:30Z" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: the argument '--any' cannot be used with '--ip <IP or IPNET>' | ||
|
||
Usage: oxide system networking allow-list update <--ip <IP or IPNET>|--any> | ||
|
||
For more information, try '--help'. |
14 changes: 14 additions & 0 deletions
14
cli/tests/data/test_system_networking_allowlist_many_ips.stdout
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"allowed_ips": { | ||
"allow": "list", | ||
"ips": [ | ||
"1.2.3.4/5", | ||
"5.6.7.8/9", | ||
"1.0.0.1/32", | ||
"::1/127", | ||
"::1/128" | ||
] | ||
}, | ||
"time_created": "2018-11-14T19:07:30Z", | ||
"time_modified": "2018-11-14T19:07:30Z" | ||
} |
6 changes: 6 additions & 0 deletions
6
cli/tests/data/test_system_networking_allowlist_neither.stderr
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
error: the following required arguments were not provided: | ||
<--ip <IP or IPNET>|--any> | ||
|
||
Usage: oxide system networking allow-list update <--ip <IP or IPNET>|--any> | ||
|
||
For more information, try '--help'. |
10 changes: 10 additions & 0 deletions
10
cli/tests/data/test_system_networking_allowlist_one_ip.stdout
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"allowed_ips": { | ||
"allow": "list", | ||
"ips": [ | ||
"1.2.3.4/5" | ||
] | ||
}, | ||
"time_created": "2018-11-14T19:07:30Z", | ||
"time_modified": "2018-11-14T19:07:30Z" | ||
} |
Oops, something went wrong.