Questions tagged [napalm]
25 questions
0
votes
1 answer
Python Parallel SSH - Netmiko/Napalm - Cisco SMB switches stuck at sending command
I am trying to determine vendor + version (using python NAPALM and parallel-ssh) of network switches (Huawei VRP5/8, Cisco Catalyst and Cisco SMB (SF/SG):
admin@server:~$ python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on…

sweedcorn
- 1
- 2
0
votes
1 answer
Telnet device automation
I try to connect to devices with python using telnet protocole to do some automation (for example somes old Cisco routers),
For that i am using Napalm library (which based on Napalm library which based on telnetlib library)
The problem is that when…

Med
- 97
- 1
- 2
- 9
0
votes
2 answers
Setup proxy for tox in tox.ini
I'm a newbie in the tox library. I failed to run tox
and this is my tox.ini
It seems the proxy configuration is failed.
Please help me. Thanks in advance

sonic
- 13
- 2
0
votes
3 answers
Napalm connection to Cisco IOS router using telnet
I'm trying to use Napalm to connect to Cisco routers using telnet from the python chevron and getting an error from netmiko.ssh.
Here is the snippet that I am using
from napalm import get_network_driver
driver = get_network_driver('ios')
with…

Bobw7635
- 1
- 2
0
votes
1 answer
Why got an unexpected keyword argument 'num_workers' with TypeError: __init__()?
from nornir import InitNornir
from nornir_napalm.plugins.tasks import napalm_get
from nornir_utils.plugins.functions import print_result
import json
def prettyPrintDictionary(dict):
print(json.dumps(dict, indent=2))
nr =…

Aleksey
- 41
- 7
0
votes
1 answer
don't use load_merge_candidate (napalm) on router
when I configure automation with napalm. I try use load_merge_candidate but it not running.
My file configuration
import json
from napalm import get_network_driver
print ('conecting ssh')
driver = get_network_driver('ios')
iosvl2 =…

Khám Nguyễn
- 1
- 1
0
votes
1 answer
Problem to use the commit:_config of napalm, not finding the config file
Hey guys I am trying to test the commit of napalm, but it is not able to finding the cfg file, I also tried to change to "txt", but the same error.
Here my code:
import napalm
import json
driver = napalm.get_network_driver("ios")
device =…

JRH
- 69
- 3
- 11
0
votes
2 answers
loop through a nested dictionary to connect in multiple vendor devices in Napalm
I have NAPALM install and working to get facts from a single device at a time. However i deviced to make things a bit different, now I am trying to use a nested dictionary to connect to my devices, but I am getting a error.
import napalm
from…

JRH
- 69
- 3
- 11
0
votes
2 answers
Unable to install Napalm-fortios module in my pycharm
I'm learning network automation using python. I'm unable to install Napalm-fortios module in my pycharm because of the error as below.
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed…

shaffi
- 1
- 1
-1
votes
1 answer
Which method is used for Multithreading when using the NAPALM library with Python?
My code below is to enter a configuration on the device or check if the device has a configuration.
driver = get_network_driver("ios")
device = driver(hostname= X.X.X.X,
username='username',
…

Mert Kulac
- 294
- 2
- 19