Skip to content
Discussion options

You must be logged in to vote

Try {{ object.address.ip }}

Here's an example I have that works on Device rather than IPAddress:

Link Text

{% if obj.interfaces.filter(mgmt_only=True).count() == 1 and
   obj.interfaces.get(mgmt_only=True).ip_addresses.count() == 1 %}Open IPMI{% endif %}

Link URL

https://{{ obj.interfaces.get(mgmt_only=True).ip_addresses.first().address.ip }}/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kotso
Comment options

Answer selected by kotso
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