Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API : Add possibility to see ip adress without mask on Device #3298

Closed
shugotek opened this issue Jun 26, 2019 · 1 comment
Closed

API : Add possibility to see ip adress without mask on Device #3298

shugotek opened this issue Jun 26, 2019 · 1 comment

Comments

@shugotek
Copy link

Environment

  • Python version: 3.6.7
  • NetBox version: 2.6.1

Proposed Functionality

Actually all fields for Ip address on a device return ip/mask.
But for example if I want to add a custom link with Ip Address, I can't because we always have mask in custom link.

do you think it's possible to separate ip address and mask in 2 fields or add reference to ip address only or ?

Regards,
Shugotek

Use Case

If we want to use a custom link for acces to management we will add a custom link https://{{ obj.primary_ip }}

Database Changes

External Dependencies

@jeremystretch
Copy link
Member

You can reference {{ obj.primary_ip.address.ip }} to get the raw host address without its mask. If you need any further assistance, please post to the mailing list.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants