Replies: 1 comment 1 reply
-
Are you doing this with an Ansible playbook since you're asking in the ansible repo? If so you should show your code. If it's a general NetBox question you'll get better answers in the main NetBox repo. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to create a custom link with device.type value, but this is not working.
This is how i wrote the link text :
{% if obj.device_type.name == 'ecs-8000' and obj.name == 'revs1000' %}{{ obj.name }}{% endif %}
And with the same writing with the device_role it's working :
"{% if obj.device_role.name == 'Switch' and obj.name == 'ftsxo0' %}{{ obj.name }}{% endif %}"
I tried differents types of writing :
{% if obj.device_type == 'ecs-ex500' and obj.name == 'revs1000' %}{{ obj.name }}{% endif %}
{% if obj.devicetype.name == 'ecs-ex500' and obj.name == 'revs1000' %}{{ obj.name }}{% endif %}
Did someone succed to create a custom link with the device type ?
Thanks 😄
Beta Was this translation helpful? Give feedback.
All reactions