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

logout "method not allowed" #182

Open
mccamicha opened this issue Jun 7, 2024 · 1 comment
Open

logout "method not allowed" #182

mccamicha opened this issue Jun 7, 2024 · 1 comment

Comments

@mccamicha
Copy link

mccamicha commented Jun 7, 2024

Ansible play
each time running vmanage_device_attachment it fails even if the device is becomes attached to the correct device template.

Testing device attachment with Ansible, versions:

  • controller version: 20.12.2
  • ansible core 2.15.11
  • python version = 3.9.18
  • viptela 0.3.10.

Every time running a simple playbook with device attachment it fails with
"url": "https://"url"/logout", "msg": "method_not_allowed", but the device is attached to a device template in the controller.

looks like it is the logout method which is failing: ansible/module_utils/viptela/viptela.py - line 135. It is using the request method and the default is GET. Tried locally to add "self.request('/logout', method="POST") and I have not received the same error anymore.
Only tested this controller version and for this playbook, but /logout might be a POST request regardless of controller version?

@junkangli
Copy link

junkangli commented Jun 19, 2024

Authentication in SD-WAN API, Release 20.11, the method is documented as GET https://{vmanage-ip-address}/logout, but in Release 20.12 it is changed to POST https://{vmanage-ip-address}/logout.

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

No branches or pull requests

2 participants