-
Notifications
You must be signed in to change notification settings - Fork 23
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
401 Unauthorized when using the aoscx_vlan_interface module #122
Comments
Hi, Last release of this module and pyaoscx ? What do you have on vlan_100_v4 and vlan_100_v6 value ? (for try to reproduct) (do you have try without ipv4 or ipv6 ?) |
The collection is in version 4.4.0 and pyaoscx 2.6.0, which I believe are the latest. I've followed the guide on the Aruba website on getting started with Ansible and installed everything on an Ubuntu 24.10 machine connected to interface 1/1/2. The REST API is enabled in the default VRF and I access it from VLAN 1. I've tried:
The variables are defined in my inventory as such:
X being an incremental value according to the switch's hostname (I've got 5 of them). Like I said, the variables and this account work perfectly fine using the aoscx_config module, and using the interface vlan and ip address commands. The credentials are defined in my inventory (as admin/test) and allow me to log into the web interface, where it confirms they are administrator credentials (of course, this is the factory default account), and I can assign IP addresses to VLAN interfaces there. |
You are using VM ? Can you post the log output with verbose ? |
Yes, this is a VM. Here is the debug output:
|
i don't reproducte the issue with OVA 10.13 do you have some other configuration ? what do you have if you enable debug log for rest ? (debug rest all) |
I tried Here are my inventory and ansible.cfg:
|
if you are using ipv4 for ansible_host ? (may be a bug with IPv6...) |
for debug rest all, you need to display log after (show log...) |
OK, I've got it to display live with terminal-monitor. It does nothing, then actually closes the session before the IP address is assigned, and the 401 error shows up on the Linux host in the following second.
|
Hello,
I'm using the GNS3 simulator image, and I run into the following error when using the L3 VLAN interface module:
(fatal: [L3SW-AOSX-01]: FAILED! => {"changed": false, "msg": "'GENERIC OPERATION ERROR: Unauthorized: Code: 401'"})
I tried with and without "state: update".
The user is the default admin user, and all other modules work. Using the config module with SSH allows me to add IP addresses to my VLAN interfaces, but I'd rather use the proper purpose-made module.
The bug is present on AOS-CX 10.13, 10.14 and 10.15. However, I tried with a 10.07 image and the module works. So it has been broken by an update in between.
I've looked into the code and I couldn't see where the URL is created to compare it with the REST API documentation.
Example playbook where only this module fails:
The text was updated successfully, but these errors were encountered: