[PR #261] [MERGED] Initial work on #93: Primary IPv4/IPv6 support #12023

Closed
opened 2025-12-29 22:19:12 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/261
Author: @jeremystretch
Created: 7/11/2016
Status: Merged
Merged: 7/12/2016
Merged by: @jeremystretch

Base: developHead: primary-ip4-ip6


📝 Commits (1)

  • 4e4bb01 Initial work on #93: Primary IPv4/IPv6 support

📊 Changes

16 files changed (+203 additions, -45 deletions)

View changed files

📝 netbox/dcim/api/serializers.py (+3 -1)
📝 netbox/dcim/api/views.py (+1 -1)
📝 netbox/dcim/fixtures/dcim.json (+22 -11)
📝 netbox/dcim/forms.py (+14 -11)
netbox/dcim/migrations/0006_add_device_primary_ip4_ip6.py (+27 -0)
netbox/dcim/migrations/0007_device_copy_primary_ip.py (+41 -0)
netbox/dcim/migrations/0008_device_remove_primary_ip.py (+19 -0)
📝 netbox/dcim/models.py (+13 -2)
📝 netbox/dcim/tests/test_apis.py (+6 -0)
📝 netbox/dcim/views.py (+6 -2)
📝 netbox/ipam/forms.py (+5 -2)
📝 netbox/ipam/models.py (+9 -1)
📝 netbox/ipam/views.py (+10 -5)
📝 netbox/templates/dcim/device.html (+22 -7)
📝 netbox/templates/dcim/device_edit.html (+4 -1)
📝 netbox/templates/dcim/inc/_ipaddress.html (+1 -1)

📄 Description

Implements #93. Includes migrations to copy Device.primary_ip to either primary_ip4 or primary_ip6 as appropriate, and then delete the original primary_ip field.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/261 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 7/11/2016 **Status:** ✅ Merged **Merged:** 7/12/2016 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `primary-ip4-ip6` --- ### 📝 Commits (1) - [`4e4bb01`](https://github.com/netbox-community/netbox/commit/4e4bb01a559983f3cb61b1457ee38a9bc137130f) Initial work on #93: Primary IPv4/IPv6 support ### 📊 Changes **16 files changed** (+203 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers.py` (+3 -1) 📝 `netbox/dcim/api/views.py` (+1 -1) 📝 `netbox/dcim/fixtures/dcim.json` (+22 -11) 📝 `netbox/dcim/forms.py` (+14 -11) ➕ `netbox/dcim/migrations/0006_add_device_primary_ip4_ip6.py` (+27 -0) ➕ `netbox/dcim/migrations/0007_device_copy_primary_ip.py` (+41 -0) ➕ `netbox/dcim/migrations/0008_device_remove_primary_ip.py` (+19 -0) 📝 `netbox/dcim/models.py` (+13 -2) 📝 `netbox/dcim/tests/test_apis.py` (+6 -0) 📝 `netbox/dcim/views.py` (+6 -2) 📝 `netbox/ipam/forms.py` (+5 -2) 📝 `netbox/ipam/models.py` (+9 -1) 📝 `netbox/ipam/views.py` (+10 -5) 📝 `netbox/templates/dcim/device.html` (+22 -7) 📝 `netbox/templates/dcim/device_edit.html` (+4 -1) 📝 `netbox/templates/dcim/inc/_ipaddress.html` (+1 -1) </details> ### 📄 Description Implements #93. Includes migrations to copy `Device.primary_ip` to either `primary_ip4` or `primary_ip6` as appropriate, and then delete the original `primary_ip` field. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:19:12 +01:00
adam closed this issue 2025-12-29 22:19:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12023