-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Error when selcting to view IP address details #18288
Comments
@KaleBrink I think I need more info in order to reproduce this --
What does "all the necessary IPAM information" mean? Which objects need to be created?
Which IP address menu is this? Is it the inline "IP Addresses" table on the Interface detail page, with the "+ Add IP Address" button? A screenshot would help. I'm not able to reproduce this error creating IP addresses on any of the devices/interfaces in the demo data set (which have a Site assigned). Please provide some specific actionable reproduction steps. Thanks! |
@bctiemann I have created a RIR (RFC 1918). I have added an aggregate (10.0.0.0/8). Then I have added the prefix 10.0.10.0/24 twice, each assigned to a different Tenant. Then I have assigned IP 10.010.1 to a device from tenant 1 and 10.0.10.2 to a device from tenant 2. When I click on the IP address it should show me an overview of all the details from that IP address, but instead I get the error shown in my first post. |
@KaleBrink Still having trouble following this...
When I try to add the same prefix twice with two different Tenants, I get a validation error on the second one saying "Duplicate prefix found in global table: 10.0.10.0/24". Is it necessary to have two such prefixes in order to reproduce the error?
How are you assigning the IPs to these Devices? What kind of devices are they? Do they have Sites defined? Are you going to the detail page of an Interface on the Device in question and then adding the IP address via the inline table I mentioned in my last comment? Again, screenshots would be very helpful here. I've created all the objects you've described here (aside from the duplicate/overlapping prefixes) and assigned the IP to the device as indicated, and I'm not getting any error. Please provide minimal, step-by-step, unambiguous reproduction steps (with specifics such as object names and associations) that you can verify will result in the error on a fresh install of the app. Please provide screenshots or other complete representations of all objects that you have created. Thanks ... |
@KaleBrink Another thing that might help (since we're releasing v4.2 on Monday and I'd like to get this fixed ASAP) - could you turn on |
@bctiemann Here is the debug information. I hope this helps, and that it is not just related to my install.
|
Thanks! That's got me what I need. I'll have a PR up shortly. |
Deployment Type
Self-hosted
Triage priority
N/A
NetBox Version
v4.2 beta
Python Version
3.12
Steps to Reproduce
Create al the necessary IPAM information to enable you to create an IP address. Assign them to a site and region, then create an IP address. When you then select the IP address from IP addresses the error below is shown.
Same error occurs when creating an IP address form the IP address menu.
`<class 'AttributeError'>
'Site' object has no attribute 'scope_id'
Python version: 3.12.3
NetBox version: 4.2-beta1
Plugins: None installed`
Expected Behavior
I would expect to see all details of the IP address selected.
Observed Behavior
<class 'AttributeError'>
'Site' object has no attribute 'scope_id'
Python version: 3.12.3
NetBox version: 4.2-beta1
Plugins: None installed
The text was updated successfully, but these errors were encountered: