Skip to content

NAPALM error when querying an Aruba switch #6685

Answered by candlerb
Profecy asked this question in Q&A
Discussion options

You must be logged in to vote

Since the string import.*system doesn't occur anywhere in the Netbox Python source, I think it's something to do with napalm or the napalm Aruba driver. I suggest you try running napalm standalone, and get that working first:

cd /opt/netbox
. venv/bin/activate
napalm --vendor VENDOR --user USERNAME --password PASSWORD --optional_args OPTIONAL_ARGS HOSTNAME call get_facts

I notice that if I put --vendor system then I get a similar error to yours:

napalm.base.exceptions.ModuleImportError: Cannot import "system". Is the library installed?

But clearly the vendor should be something else like "aoscx".

Note: the correct way to install the napalm modules of interest inside the Netbox venv is t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Profecy
Comment options

Answer selected by ryanmerolle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants