Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation 'action: "shutdown"' in module juniper.device for Juniper devices running VMHOST #587

Closed
biepio opened this issue Jul 7, 2022 · 1 comment
Assignees

Comments

@biepio
Copy link

biepio commented Jul 7, 2022

  • Feature Idea

Module Name

juniper.device collection and Python libraries version

Summary

Could you implement in this module working 'action: "shutdown"' for Juniper devices running VMHOST ? Currently for VMHOST only 'action: "reboot"' working correctly. For 'normal' Junos both actions work correctly.

Steps to reproduce

---
 
- name: Reboot VM Hosts
  hosts: po_vmhost
  connection: local
  gather_facts: no
  tasks:
          
  - name: Reboot VM Hosts
    juniper.device.system:
      action: "reboot"
#     action: "shutdown"
      vmhost: True
      all_re: True
    register: result
 
  - name: Print result
    debug:
      var: result 

Expected results

Power-off Juniper device running VMHOST

Actual results

FAILED! => {"changed": false, "msg": "The vmhost option can only be used when the action option has the value \"reboot\"."}
@apurvaraghu
Copy link
Contributor

fix provided in Juniper/py-junos-eznc#1294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants