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

Can't add a /32 prefix #444

Closed
rgstori opened this issue Aug 9, 2016 · 4 comments
Closed

Can't add a /32 prefix #444

rgstori opened this issue Aug 9, 2016 · 4 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@rgstori
Copy link

rgstori commented Aug 9, 2016

When adding a new /32 subnet, both with prefix "x.y.z.w" and "x.y.z.w/32", I get the error

<type 'exceptions.AttributeError'>
'unicode' object has no attribute 'version'

Prefixes with the same network address, but masks ranging from /31 to /24, work as expected.

@rgstori
Copy link
Author

rgstori commented Aug 9, 2016

I'm actually not sure if I should define a prefix for /32 addresses, what I'm trying to do is to describe the content of a /22 prefix, that is

  • A number of /27,/28,/29 subnets, each associated to a vlan
  • After these subnets, I allocated some /32 IPs for the load balancer VIPs.

If I don't create prefixes for the /32 VIPs, and create addresses instead, the prefix view shows those IPs as available, which is not true.
Should I create /32 prefixes? Or should I create a "fake" container prefix for the VIPs and subsequent free space?

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Aug 9, 2016
@jeremystretch
Copy link
Member

These are IP addresses, not prefixes. NetBox will not allow you to create a prefix with a /32 (IPv4) or /128 (IPv6) mask. This is supposed to be reported as an error in the form, but there's a problem with the way the model is being validated (fixing now).

@rgstori
Copy link
Author

rgstori commented Aug 9, 2016

Thank you!
How can I avoid seeing an "available" child prefix if a /32 IP address (defined in the parent prefix) is occupying that space?

@jeremystretch
Copy link
Member

You can define a prefix with a role of "container" to denote the space carved out for those loopback IPs. So for example, if you have eight VIPs within a /24, you can create a /29 within the /24 to summarize those.

if-fi pushed a commit to if-fi/netbox that referenced this issue Oct 1, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants