Questions tagged [napalm]
25 questions
3
votes
1 answer
backing a cisco router, using NAPALM, using remote login using SSH
this image is the diagram for GNS3 of routers want to configureTrying to Backup the configuration of a Cisco Router. but the connection is not opening.
from napalm import *
import napalm
drivers = napalm.get_network_driver('ios')
…

Wahid Anwari
- 35
- 6
2
votes
1 answer
How to use get_interfaces_ip() and get_conf() features in NAPALM in the same code
My purpose in this code is to detect interfaces with L3 IP under the "Virtual-ethernet" interfaces in a NE40 Huawei device. I was able to do this step.
As I mentioned below, my question is, How can I see the configurations of these interfaces with…

Mert Kulac
- 294
- 2
- 19
2
votes
0 answers
Visualize the Current spanning Tree of the Switches with the Help of Netmiko or Napalm
Hallo i am working on a project with netmiko and i would like to visualize the current Spanning tree of the switches
is there a way to this ? or library ?

Anouar Touil
- 33
- 5
2
votes
2 answers
No 'get_network_driver' in Python3 Napalm on Ubuntu Network Automation Container
I'm currently working on Network Automation Container in GNS3. While I'm trying to use napalm lib, I'm getting either or these two errors:
"ImportError: cannot import name 'get_network_driver' from partially initialized module 'napalm' (most likely…

Konrad Jucha
- 21
- 1
1
vote
1 answer
SSH ProxyJump but use VRF on jump host in ssh_config
I'm looking to SSH to a jump box and then initiate an SSH from within a VRF on that box, but use an ssh_config file to do so.
remoteclient => jumphost => device1 within VRF connected to jumphost
Essentially an ssh_config variant of this:
ssh -t…

lrcto_1
- 37
- 5
1
vote
1 answer
Python, find line in text file, and jump to next 'string-to-find'
string to search:
filecontent = policy-map PM_QOS_C_V-50-50-0-0
class CM_QOS_C_VOICE
priority level 1
police cir percent 9
class CM_QOS_C_VIDEO
priority level 2 percent 15
class CM_QOS_C_ROUTING
bandwidth…

Drml Brt
- 69
- 5
1
vote
1 answer
How to properly handle this error while using multi thread
I am using napalm library to connect to Arista vEOS using GNS3. I intentionally put the wrong IP just to see how my codes handle an error. But the try and except did not work as intended.
import napalm
import concurrent.futures
def…

iqy
- 11
- 2
1
vote
1 answer
Napalm: OSError: Search pattern never detected in send_command_expect
can anyone help? I got an error when I was trying to test a simple code with napalm. I used cisco on GNS3. I also added optional arguments (delay_factor), but it got the same error.
from napalm import get_network_driver
driver =…

Zakky M
- 31
- 2
0
votes
0 answers
Napalm library cannot connect to MikroTik device via "api-ssl"
Good morning,
I am currently attempting to connect to my MikroTik device using the Napalm python library. I have had no problem to do so in previous times using the device's API port (8728 by default).
The commands in charge of establishing a new…

mtik0023
- 1
0
votes
0 answers
Can anyone suggest me how can i use gns3 Api on python
I've used cisco DevNet Sandbox. I'm facing errors while using napalm module python. And while I try to authenticate with the correct credentials it always tells me Authentication failed. So can I use Gns3 Api on python to overcome this issue…

AAYUSH NEPAL
- 1
- 1
0
votes
0 answers
napalm not showing removed config for cisco ios
I am attempting to use napalm to push configs to Cisco devices. When I do a compare_config, it is only showing me the additions, not the config which is being removed. From the examples I have seen, this should be included. Am I doing something…

Jonathan E
- 54
- 2
- 12
0
votes
0 answers
Sending multiple lines of config as a string using napalm load_merge_candidate for Junos
As the title says im trying to send '\n' seperated set based commands to juniper device using load_merge_candidate with napalm (driver is junos). But i see it throwing MergeException with this message 'napalm.base.exceptions.UnlockError:…

kittu
- 3
- 3
0
votes
0 answers
No Display BGP information Napalm
I'm studying about Python scripting and testing a couple of scripts with Napalm. In my scenario, I'm access the Sandbox Router from Cisco and create the config based on file "NapalmBGP-R1.cfg. Works fine, but I try to after the user run this…
0
votes
1 answer
using NAPALM to connect to Cisco Router using SSH Key not working
im trying to get netbox to get configs using NAPALM, but even the basic connection using napalm isnt working, always errors around the key file, which we need to use (cannot use password).
napalm==3.4.1
python=3.8
referred to the documentation at…

DrunkMunki
- 1
- 1
- 4
0
votes
1 answer
Use for loop with dictionary
I'm using Napalm to change the hostname of many network devices. Since the config will be different for each device, I need the script to assign the proper config to each device based on it's IP address. This seems like a dictionary would work…

Chuck Slayton
- 95
- 5