Reboot fabric switch in 6.0 post-actions job
Change-Id: I88e26dafe0360abaa552f120dd310dfd31667442
diff --git a/Jenkinsfile-postactions b/Jenkinsfile-postactions
index 2922b5b..8e3dff7 100644
--- a/Jenkinsfile-postactions
+++ b/Jenkinsfile-postactions
@@ -54,7 +54,7 @@
timeout(5) {
sh returnStdout: true, script: """
ssh-keyscan -H ${deployment_config.fabric_switches[i].ip} >> ~/.ssh/known_hosts
- sshpass -p ${deployment_config.fabric_switches[i].pass} ssh -l ${deployment_config.fabric_switches[i].user} ${deployment_config.fabric_switches[i].ip} 'service ofagentd restart' || true
+ sshpass -p ${deployment_config.fabric_switches[i].pass} ssh -l ${deployment_config.fabric_switches[i].user} ${deployment_config.fabric_switches[i].ip} 'sudo reboot' || true
"""
}
}