Questions tagged [netbox]

40 questions
0
votes
0 answers

Proper way to upload markdown to a field in NetBox

I am trying to upload a comment to a device's comment field in NetBox which takes markdown language. With the below file content, the comment gets inserted and displays the comment in NetBox as just text (the lines in the file are doublespaced…
jaludn
  • 13
  • 3
0
votes
1 answer

'str' object has no attribute 'label' - AttributeError

I upgraded NetBox from version 2.11.7 to version 3.3.9 recently. As in the new version there is no longer a password vault, it was necessary to install the netbox-secretstore plugin. The entire NetBox update and plugin installation went well,…
0
votes
0 answers

Trying to map which zones of IPAM the range against the rule supplied IP range

Hi everyone, I am Trying to map which zones of IPAM the range against the rule supplied IP range Example: IPAM subnets Zone Subnet IPs involved HR 9.2.0.0/16 [9.2.(0-255).(0-255)]       MAIL 9.3.0.0/16  [9.3.(0-255).(0-255)] HR 9.5.0.0/16…
Dany6195
  • 1
  • 6
0
votes
0 answers

Python NetBox REST API error when uploading json to NetBox

I'm trying to modify a device in NetBox using subprocess, curl and the NetBox REST API through python. The issue seems to be with special characters and JSON. Note: I'm not using requests because we do everything in curl. We are also bypassing…
jaludn
  • 13
  • 3
0
votes
1 answer

Display messages/notifications in NetBox

I would like some help with messages in NetBox, please. I'm writing a custom validator and I need to display a warning message if for example a device name doesn't fit the company's policy. I can't use the standard fail method in the CustomValidator…
0
votes
0 answers

django filterset search object that contain text

I'm not experience with python or django before. but I just started to create new custom plugin for NetBox using django the plugin works well but I still struggle with search function. I can search if the values are text. but if the value is an…
nexyr
  • 96
  • 1
  • 1
  • 6
0
votes
0 answers

netbox could not translate postgress to address

So i'm trying to setup netbox. I installed redis and postgresql manually and then follow the guide on linuxserver.io. I created the docker-compose and edited the right environments, however when starting the container i'm getting the error 'could…
0
votes
1 answer

Calling a function in the second loop returns unexpected value

I'm mapping my switches to a tool called Netbox which is a CMDB tool. I have a list of switches for example: [US-switch01, US-switch02] If those devices don't exist in Netbox, I would like to create that device. Here is the script right now: import…
Daniel
  • 621
  • 5
  • 22
0
votes
0 answers

Ansible Failed to connect with Netbox

i'm trying to run playbook which connects with Netbox. But getting error following error.. - name: "Test NetBox prefix module" connection: local hosts: localhost collections: - netbox.netbox tasks: - name: vars …
Mike
  • 61
  • 1
  • 3
0
votes
0 answers

Ansible AWX Netbox Inventory

I have a issue with getting a list of host from Netbox. I made a github projects everything is syncing okey but when i try add a source for a inventory it doesnt show my any inventory file. Output from sync project: PLAY [Update source tree if…
SPR
  • 15
  • 4
0
votes
1 answer

netbox nextbox-ui-plugin topology viewer is empty

netbox 534a7d1fe0bf (v3.1.6) plugins 0.9.2 I am green-hands in docker-compose and netbox. Now I am trying to use a plugin named nextbox-ui-plugin to show topo of our switches and routers. I installed netbox in a docker environment and installed the…
skyfallen
  • 1
  • 2
0
votes
1 answer

Problem installing django-auth-ldap on Centos 8

I have problem with finalizing netbox installation on Centos8. Netbox is working fine with Gunicorn and Apache. I wanted to add LDAP auth but there is a problem with django-auth-ldap installation. I have virtual env and python version 3.9. Pip is up…
el_magneto
  • 73
  • 1
  • 2
  • 9
0
votes
0 answers

Wher to look for custom teplate tag in django

I'm trying to understand how netbox application is working (https://github.com/netbox-community/netbox). In a template "sidenav.html" it uses a custom tag "nav" this way: {% load nav %} {% nav %} Can you tell me what's behind that and where or how…
el_magneto
  • 73
  • 1
  • 2
  • 9
0
votes
1 answer

Docker Compose - Container Bash Forking

I am trying to run netbox based on their standard guide on Docker Hub with a slight difference that I need our existing postgres dump to be restored when the postgres container starts. I have tried a few approaches like defining a command option in…
PoJam
  • 127
  • 6
0
votes
1 answer

Integrating a plugin in netbox

I am creating a plugin in netbox. I have run the setup.py file below as prescribed by the documentation from setuptools import find_packages, setup setup( name='netbox_ipdevcir_plugin', version='0.1', description='A plugin to add…
Ashford
  • 21
  • 5