Closed Dapsy2000 closed 3 years ago
In transparency, I updated comment for readability reasons, e.g. added code blocks.
I see no mention of onboarding_extensions_map
as documented on the readme.
I see no mention of
onboarding_extensions_map
as documented on the readme.
Thanks for the quick reply. What I found in the documentation
onboarding_extensions_map (dictionary), mapping of a NAPALM driver name to the loadable Python module used as an onboarding extension. The dictionary should be in the format:
{
<Napalm Driver Name>: <Loadable Python Module>
}
If I understood this right, the loadable Python Module is napalm-asa, right? But what is the driver name? Is it cisco_asa or just asa?
Could you post the right configuration in my case?
# Enable installed plugins. Add the name of each plugin to the list.
PLUGINS = ["netbox_onboarding"]
PLUGINS_CONFIG = {
"netbox_onboarding": {
ADD YOUR SETTINGS HERE
}
}
(venv) root@netbox2:/opt/netbox/netbox/netbox# pip freeze |fgrep napalm
napalm==3.2.0
napalm-asa @ git+https://github.com/napalm-automation-community/napalm-asa.git@fc20f0c15f2a9c72f912bfeab55d9ab033a90c02
I've solved the issue.
The only thing I had to do was specify the correct port (443 instead of 22) and platform (cisco_asa) when onboarding.
I'm not sure why netmiko, napalm and the onboarding plugin are not able to auto detect the napalm driver? Am I doing anything wrong?
Autodetection mechanism uses a selected port to open a Netmiko/SSH session and detect the onboarded device type. This will not work for the NAPALM drivers using other protocols (like HTTPS/443). Autodection is skipped when platform is already assumed and specified as an input.
Hello together,
Is it possible to integrate the NAPALM-ASA driver from this repository (https://github.com/napalm-automation-community/napalm-asa) to use it with the onboarding plugin?
After some changes I was able to use the NAPALM-ASA driver with iPython from the Netbox venv but with the plugin I was not.
What I did:
Install NAPALM ASA via Pip
Changed asa.py to use with Python 3
Changed asa.py again to use it with Python 3.8
After changing I was able to query the ASA Rest API:
Test via onboarding plugin The first attempt via the onboarding plugin showed me that no NAPALM driver was available.
So I created a new one under Platforms.
The second attempt showed me the following error.