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

Edit IP address, update/change device #211

Closed
fone opened this issue Jul 6, 2016 · 11 comments
Closed

Edit IP address, update/change device #211

fone opened this issue Jul 6, 2016 · 11 comments
Labels
type: feature Introduction of new functionality to the application

Comments

@fone
Copy link

fone commented Jul 6, 2016

I am wanting to update the "Device" on IP addresses I've added. I can change the IP, but the Device field says "None" and does not have an area to edit. Am I missing something?

thank you

Using v1.
editing_ip
0.7

@peelman
Copy link
Contributor

peelman commented Jul 6, 2016

Right now you assign IP addresses to devices; not devices to IP addresses.

So you would need to go to the device in question, and add the IP from there.

@Gelob
Copy link
Contributor

Gelob commented Jul 6, 2016

I had the same problem yesterday and then I realized I was just dumb. You have to go to the device you want to assign an IP address to and then click assign IP address under IP addresses. Do not edit the device.

http://netbox-demo01.packetlife.net/dcim/devices/112/

screen shot 2016-07-06 at 2 57 41 pm

@jeremystretch
Copy link
Member

then I realized I was just dumb.

Not likely. This seems like a UX issue that could stand to be improved.

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application type: feature Introduction of new functionality to the application and removed type: bug A confirmed report of unexpected behavior in the application labels Jul 6, 2016
@fone
Copy link
Author

fone commented Jul 6, 2016

ok thanks for the quick replies gentlemen. I got it.

I understand 'why' its setup as it is now. it does make sense the more time you spend in here.

my trouble is I am moving from GestioIP (we're a small ISP) so I have a ton of devices/addresses. I was hoping to import IP address csv and then go back in and edit it, but as you know it doesn't like that as the device, and numerous other fields don't exist.

So I'm only able to import IP addresses along with a description. then will go back in and edit them when I have time.

I'm gonna stick with it though. thanks for the assistance.

@ryanmerolle
Copy link
Contributor

Alternatively, you could just insert direct into the table(s) and play around that way. I would only suggest if you feel comfortable with this all, but for instances where the import functions are too rigid or the UX is not there yet, it may help you get data out of GestioIP quicker.

Later on we could develop migration scripts for different DCIMs/IPAMs exports/imports. But I see this as low priority.

@topranks
Copy link

topranks commented Jul 7, 2016

Thanks guys. When importing IPs via CSV I could include the device, the example CSV format given shows this:

192.0.2.42/24,65000:123,switch12,ge-0/0/31,True,Management IP

I do agree however it would nice to have the GUI functionality that you could select the device/interface when adding an IP manually, as well as having this ability via the device section.

@fone
Copy link
Author

fone commented Jul 7, 2016

topranks- yeah that works if the device already exist.
So say this is what I want to import
10.10.251.18/32,,Virtual Machine,,,NetBox

Enter one line per record in CSV format.
Record 1 (device): Device not found.

So I'd need to create each and every device before importing that way. I have quite a few that are virtual machines. Trying to figure out the easiest way for this right now.

@kenspi
Copy link

kenspi commented Jul 13, 2016

I'm running into a similar issue (also coming from GestioIP). We're a medium size company with 3 office sites plus some data centers, so we have hundreds more "non-racked" devices (desktop PCs, VoIP phones, printers, etc). I can import the used addresses via CSV, but the hostname field is what populates the "description" field in NetBox.

Importing all of these as devices first could be a possible option, but relatively few of these are racked in our case. Since a rack location is mandatory (see #198 for why this is sub-optimal), pre-importing all non-racked devices is not realistic.

@fone
Copy link
Author

fone commented Jul 14, 2016

there has been mention of a "host name" field being added to the import section. if this happens that should resolve my trouble.

at the moment when I'm adding VMs, I'm adding them to a rack I called VirtualRack.

@cstueckrath
Copy link

We have a similar problem with this.
We have tons of VMs to add (I like the VirtualRack concept, thanks for the hint), so we added all used IP-Addresses and prefixes to get started.
But if I add a new device and assign an IP-address we previously added, a duplicate IP-address is generated. We would like to assign a device to an IP-address already in NetBox but cannot figure out, how to do that.

@Know1
Copy link

Know1 commented Oct 14, 2016

Issue #610 is sort of related. I think when adding a new device the ability to assign an IP easier would mean less need to go in reverse try to apply a device once the IP is created.

lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@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: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

9 participants