napalm-automation / napalm-salt

Modules for event-driven network automation and orchestration using Salt
Apache License 2.0
128 stars 36 forks source link

Help configuring napalm-salt proxy minion Ubuntu 20 #67

Closed basondole closed 4 years ago

basondole commented 4 years ago

Hello Have just installed salt on Ubuntu 20 and I'm trying to connect to a juniper device via proxy minion without success. Have tried with proxytype: napalm the debug says

[DEBUG ] Could not LazyLoad napalm.grains: 'napalm' virtual returned False: "napalm"" (/usr/lib/python3/dist-packages/salt/proxy/napalm.py) cannot be loaded: NAPALM is not installed: "pip install napalm"

Then I tried with proxytype: junos the debug says

[DEBUG ] Could not LazyLoad junos.initialized: 'junos' virtual returned False: Missing dependency: The junos proxy minion requires the 'jnpr' Python module.

I do have napalm and pyez installed on the system

$ pip3 list | egrep "napalm|jun"
junos-eznc             2.4.1
napalm                 3.0.1

What to do here? Thanks

basondole commented 4 years ago

Fixed by doing a pip3 napalm install with sudo, That is $ sudo pip3 install napalm