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

aoscx_facts lldp_neighbors errors #90

Open
amysonmisc opened this issue Dec 7, 2023 · 9 comments
Open

aoscx_facts lldp_neighbors errors #90

amysonmisc opened this issue Dec 7, 2023 · 9 comments

Comments

@amysonmisc
Copy link

Hello,

I updated the arubanetworks.aoscx collection to 4.3.1.
I got an error "fatal: [aoscx_1]: FAILED! => {"changed": false, "msg": "Network resources: "PARAMETER ERROR: Wrong module name. LLDPNeighbor doesn't exist""}"

-vrfs, - vlans work, only lldp_neighbors gives me an error.

collections:

  • arubanetworks.aoscx

tasks:

  • name: lldp
    aoscx_facts:
    gather_network_resources:
    - lldp_neighbors

    register: facts_output

@alagoutte
Copy link
Contributor

Hi,

Do you have check if you have the last pyaoscx release ? (2.5.1) (you can check with pip list)

@amysonmisc
Copy link
Author

Hello,

I just checked the version.

pyaoscx 2.5.1

thank you

@tchiapuziowong
Copy link
Member

@amysonmisc can you share the platform and firmware version you're using?

@amysonmisc
Copy link
Author

@tchiapuziowong here you go.

We have both 6200F and 6300F and ran into the same issue.

JL728A 6200F with ML.10.10.1080
JL665A 6300F with FL.10.10.1071

thank you

@alagoutte
Copy link
Contributor

@tchiapuziowong here you go.

We have both 6200F and 6300F and ran into the same issue.

JL728A 6200F with ML.10.10.1080 JL665A 6300F with FL.10.10.1071

thank you

Hi, i try with 6300 with 10.10.x
and i get the same error when using pyaoscx 2.5.0 but work when switch to 2.5.1
can you check the pyaoscx version ? (do you are using venv ?)

@amysonmisc
Copy link
Author

@alagoutte

I switch 1.0.0 and 2.5.1 back and forth (1.0.0 for NAPALM). Yes, I am WSL.

Currently on 2.5.1, still the same error.

pip3 list | grep pya
pyaoscx 2.5.1

@tchiapuziowong
Copy link
Member

tchiapuziowong commented Jan 18, 2024

Hi @amysonmisc -

I'm unable to produce the error you're referring to - here are my environment details and the example playbook I use:

ansible-control-machine$ansible --version
ansible [core 2.13.13]
  config file = /ws/chiapuzi/tme/sandbox/github_issues_cx/iss_90/ansible.cfg
  configured module search path = ['/users/chiapuzi/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /ws/chiapuzi/tme/sandbox/3_8_ansible/lib/python3.8/site-packages/ansible
  ansible collection location = /users/chiapuzi/.ansible/collections:/usr/share/ansible/collections
  executable location = /ws/chiapuzi/tme/sandbox/3_8_ansible/bin/ansible
  python version = 3.8.10 (default, Jan 26 2022, 13:25:21) [GCC 5.4.0 20160609]
  jinja version = 3.1.3
  libyaml = True
(3_8_ansible) ansible-control-machine$cat facts_collections.yml
- hosts: all
  name: https://github.com/aruba/aoscx-ansible-collection/issues/90
  collections:
    - arubanetworks.aoscx
  gather_facts: False
  tasks:
    - name: Get LLDP on VSF stack
      aoscx_facts:
        gather_network_resources:
          - lldp_neighbors
      register: facts_output
    - name: output facts
      debug:
        var: facts_output.ansible_facts.ansible_network_resources.lldp_neighbors

I'm using a 6200F in VSF stack with ML.10.10.1080

@tchiapuziowong
Copy link
Member

@amysonmisc can you ensure the ansible_python_interpreter variable isn't defined in your playbook & inventory? to validate where your pyaoscx package is installed execute pip show pyaoscx and please provide your ansible --version output as well

@tchiapuziowong
Copy link
Member

@amysonmisc can you confirm if this issue is still seen in the latest collection and pyaoscx version?

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

3 participants