From 4bac7c64ddfa2a5b8386580d4d4780529972083a Mon Sep 17 00:00:00 2001 From: chirac Date: Thu, 12 Jul 2018 15:30:05 +0200 Subject: [PATCH] Ajoute l'option force reboot, reboot le switch pour appliquer les options reboot --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 508cdb3..286caf9 100755 --- a/main.py +++ b/main.py @@ -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)