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

This commit is contained in:
chirac 2018-07-12 15:30:05 +02:00
parent ab37b30b3c
commit 4bac7c64dd

View file

@ -116,6 +116,7 @@ class Switch:
{"ip_address":
{"version":"IAV_IP_V4",
"octets":self.settings["switchs_management_interface_ip"]}}},
"is_forced_reboot_enabled": True,
}
# Nous lançons la requête de type POST.
post_restore = requests.post(url_restore, data=json.dumps(data), headers=self.headers)