Commit 4bac7c64 authored by chirac's avatar chirac

Ajoute l'option force reboot, reboot le switch pour appliquer les options reboot

parent ab37b30b
...@@ -116,6 +116,7 @@ class Switch: ...@@ -116,6 +116,7 @@ class Switch:
{"ip_address": {"ip_address":
{"version":"IAV_IP_V4", {"version":"IAV_IP_V4",
"octets":self.settings["switchs_management_interface_ip"]}}}, "octets":self.settings["switchs_management_interface_ip"]}}},
"is_forced_reboot_enabled": True,
} }
# Nous lançons la requête de type POST. # Nous lançons la requête de type POST.
post_restore = requests.post(url_restore, data=json.dumps(data), headers=self.headers) post_restore = requests.post(url_restore, data=json.dumps(data), headers=self.headers)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment