Add a "Copy to clipboard" button for IP addresses in the Device/id/interfaces #6017

Closed
opened 2025-12-29 19:35:45 +01:00 by adam · 8 comments
Owner

Originally created by @arthurzinck on GitHub (Jan 28, 2022).

NetBox version

(v3.1.7-dev)

Feature type

New functionality

Proposed functionality

I would like to add to netbox a functionnality that is very simple.

It would be the possibility for one to copy the IP address and netmask in cidr notation of a device by clicking on a button.

Intead of highlighting the IP Adress and catching spaces/tab on a dash, which can be frustrating.

Screenshot from 2022-01-28 14-35-08

Use case

This would address a frustrating experience when trying to copy the ip of an interface and copying blank space and the IP

Database changes

None 👍

External dependencies

Clipboard.js already in the yarn bundle 👍

Originally created by @arthurzinck on GitHub (Jan 28, 2022). ### NetBox version (v3.1.7-dev) ### Feature type New functionality ### Proposed functionality I would like to add to netbox a functionnality that is very simple. It would be the possibility for one to copy the IP address and netmask in cidr notation of a device by clicking on a button. Intead of highlighting the IP Adress and catching spaces/tab on a dash, which can be frustrating. ![Screenshot from 2022-01-28 14-35-08](https://user-images.githubusercontent.com/43119213/151555928-1f48c278-f46f-49bf-82da-646df0b71cd7.png) ### Use case This would address a frustrating experience when trying to copy the ip of an interface and copying blank space and the IP ### Database changes None :+1: ### External dependencies Clipboard.js already in the yarn bundle :+1:
adam added the type: featurestatus: needs ownerpending closure labels 2025-12-29 19:35:45 +01:00
adam closed this issue 2025-12-29 19:35:45 +01:00
Author
Owner

@vgnx commented on GitHub (Jan 28, 2022):

This feature could also be added to the server names 🚀

@vgnx commented on GitHub (Jan 28, 2022): This feature could also be added to the server names :rocket:
Author
Owner

@jeremystretch commented on GitHub (Jan 28, 2022):

It could probably be added in a lot of places. I think if we're to do this, it's probably best implemented as a template filter that injects the necessary code around a bit of text. IMO, ideally the "copy to clipboard" button should only appear when hovering over the relevant text, to avoid clutter.

@jeremystretch commented on GitHub (Jan 28, 2022): It could probably be added in a _lot_ of places. I think if we're to do this, it's probably best implemented as a template filter that injects the necessary code around a bit of text. IMO, ideally the "copy to clipboard" button should only appear when hovering over the relevant text, to avoid clutter.
Author
Owner

@PieterL75 commented on GitHub (Jan 28, 2022):

I added it it to the javascript based context menu plugin. https://github.com/PieterL75/netbox_contextmenus
Great idea !

@PieterL75 commented on GitHub (Jan 28, 2022): I added it it to the javascript based context menu plugin. https://github.com/PieterL75/netbox_contextmenus Great idea !
Author
Owner

@Abulhallaj commented on GitHub (Feb 2, 2022):

It's also is a good idea to add a button for telnet client to target IP Address

@Abulhallaj commented on GitHub (Feb 2, 2022): It's also is a good idea to add a button for telnet client to target IP Address
Author
Owner

@PieterL75 commented on GitHub (Feb 2, 2022):

Abulhallaj, you can edit the nbcm.js in your local netbox depliyment and add items as you like.

@PieterL75 commented on GitHub (Feb 2, 2022): Abulhallaj, you can edit the nbcm.js in your local netbox depliyment and add items as you like.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 4, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Apr 4, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Jun 6, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Jun 6, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Jul 6, 2022):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Jul 6, 2022): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6017