Skip to content

Why isn't obj.primary_ipv4 returning anything? #6031

Answered by ktims
WhaleJ84 asked this question in Q&A
Discussion options

You must be logged in to vote

The primary_ip4 (note, not primary_ipv4) is an IPAddress object. You need {{ obj.primary_ip4.address.ip }} to get the bare address (sans netmask).

Replies: 1 comment 3 replies

Comment options

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

@candlerb
Comment options

@WhaleJ84
Comment options

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