Skip to content
Discussion options

You must be logged in to vote

class Device inherits from from RenderConfigMixin

# /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py nbshell
### NetBox interactive shell (netbox3)
### Python 3.8.10 | Django 4.2.8 | NetBox 3.6.7
### lsmodels() will show available models. Use help(<model>) for more info.
>>> help(Device)
...
|  ----------------------------------------------------------------------
 |  Methods inherited from dcim.models.mixins.RenderConfigMixin:
 |
 |  get_config_template(self)
 |      Return the appropriate ConfigTemplate (if any) for this Device.
 |
 |  ----------------------------------------------------------------------
...
>>> d = Device.objects.get(name="gw2")
>>> d.get_config_template()
<Co…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@PaulR282
Comment options

@candlerb
Comment options

@PaulR282
Comment options

Answer selected by PaulR282
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants