Commit 2bf50a2
committed
Academic Benchmarks CLI: add ability to remove IPs by note
Referencing the IP addresses by note is super convenient when managing
this interface.
Fixes CNVS-23385
Test Plan:
* Be careful when testing. You are affecting the same
* system that is used in production
From a rails console:
1. Whitelist an IP address with a note of your choice. Make sure
you invent a new note and don't reuse one that already exists.
AcademicBenchmarks::CliTools.whitelist_ip("3.3.3.3", "cool-note")
2. Now remove the IP address from the whitelist with:
AcademicBenchmarks::CliTools.remove_from_whitelist("<note-name")
Change-Id: I7cb1c1aac4d527fe2608c33bbc73b006abd6df69
Reviewed-on: https://gerrit.instructure.com/63703
Tested-by: Jenkins
Reviewed-by: Ryan Taylor <rtaylor@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
Product-Review: Benjamin Porter <bporter@instructure.com>1 parent 012e499 commit 2bf50a2
1 file changed
Lines changed: 27 additions & 0 deletions
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
23 | 44 | | |
24 | 45 | | |
25 | 46 | | |
| |||
103 | 124 | | |
104 | 125 | | |
105 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
106 | 133 | | |
107 | 134 | | |
108 | 135 | | |
0 commit comments