mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-08-22 13:01:21 -04:00
drop code for toggling OVH permanent mitigation
This functionality was deprecated in July and is being removed in September.
This commit is contained in:
parent
d0662589bf
commit
c5a724ea7e
1 changed files with 0 additions and 12 deletions
|
@ -37,18 +37,6 @@ if system == "mitigation":
|
||||||
print("state: " + result["state"])
|
print("state: " + result["state"])
|
||||||
else:
|
else:
|
||||||
err("expected single result")
|
err("expected single result")
|
||||||
elif action == "enable":
|
|
||||||
result = client.post(f'/ip/{ip}/mitigation', ipOnMitigation=ip)
|
|
||||||
if result["permanent"] is True and result["state"] == "creationPending":
|
|
||||||
print("enabling permanent mitigation")
|
|
||||||
else:
|
|
||||||
err(json.dumps(result, indent=4) + "\nunexpected result")
|
|
||||||
elif action == "disable":
|
|
||||||
result = client.delete(f"/ip/{ip}/mitigation/{ip}")
|
|
||||||
if result["permanent"] is True and result["state"] == "removalPending":
|
|
||||||
print("disabling permanent mitigation")
|
|
||||||
else:
|
|
||||||
err(json.dumps(result, indent=4) + "\nunexpected result")
|
|
||||||
else:
|
else:
|
||||||
err("unknown action: " + action)
|
err("unknown action: " + action)
|
||||||
elif system == "firewall":
|
elif system == "firewall":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue