-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v2.11.10
Python version
3.6
Steps to Reproduce
- Open a device and navigate to the Interfaces page
- Click the "+" next to an interface (add IP address)
- This takes you to e.g.
/ipam/ip-addresses/add/?interface=3&return_url=/dcim/devices/1/interfaces/
- This takes you to e.g.
- Enter an IP address, e.g. "1.2.3.4/24"
- Click "Create and Add Another"
[The same problem occurs with netbox v3.0-beta1 under python 3.8]
Expected Behavior
I expected it to return to the add IP address page, with the device and interface still selected, so that you can add a second IP address that interface.
(An common use case is when you want to add an IPv4 address and an IPv6 address to the same interface)
Observed Behavior
After adding the first address, Netbox goes to /ipam/ip-addresses/add/?status=active. It has forgotten the device and interface, so to assign the address to the correct device/interface, these have to be selected from scratch.
Hence it is currently quicker and more accurate to use "Create" instead of "Create and Add Another", since this returns you to the original device interface list, where you can click "+" again.
Another observation:
- When adding the first IP address, the top two tabs show "New IP" (selected) and "Assign IP"
- After the first IP address has been added with "Create and Add Another", the top two tabs show "New IP" (selected) and "Bulk Create"