-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Copy-to-clipboard functionality for IPs #12499
Comments
Copying the IP without the subnet mask seems a bit counter intuitive because it is displayed with a mask in most places of the UI. But I agree that copying should be improved. I always mark the IP to copy it but sometimes I accidentally select a leading tabulator which makes pasting it a pain. |
We have a copy-to-clipboard button in place elsewhere around the UI (the API tokens list, for instance) that should be suitable for this. |
I can take this up, but which places in the UI is this being intended to be applied? |
@abhi1693 I think the intent here is just to display a copy-to-clipboard button wherever an IP address is displayed within the UI, maybe excluding object tables. |
@jeremystretch The OP has requested to copy the IP without the mask. If I'm to generalize the copy button, that may complicate things because I have a feeling this code will have to be some sort of hack in the TS script to drop the mask. I would rather leave this on the user to remove the mask after they paste, but just wanted to confirm with you as well. |
IMO it makes sense to copy the mask as well. I don't see any reason to exclude it. |
I think the plugin of @PieterL75 should be included as standard in the Netbox - it solves all our problems :) |
* adds copy content button #12499 * adds newline * Omit hash mark from target string * Clean up HTML element IDs --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
NetBox version
v3.5.0
Feature type
New functionality
Proposed functionality
It would be great if there would be a function that when you hover over the IP addresses with the mouse a copy button appears which copies the IP without subnet mask.
Copy button like:
Use case
I think it would be a relief for most users, at the moment you always have to tediously mark the IP and then copy it to connect to a system e.g. via SSH.
Database changes
External dependencies
The text was updated successfully, but these errors were encountered: