Jeremy Stretch 7 vuotta sitten
vanhempi
commit
7a8fc8dfd5
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1 0
      CHANGELOG.md
  2. 2 2
      netbox/ipam/models.py

+ 1 - 0
CHANGELOG.md

@@ -12,6 +12,7 @@ v2.5.8 (FUTURE)
 * [#2923](https://github.com/digitalocean/netbox/issues/2923) - Provider filter form's site field should be blank by default
 * [#2938](https://github.com/digitalocean/netbox/issues/2938) - Enforce deterministic ordering of device components returned by API
 * [#2939](https://github.com/digitalocean/netbox/issues/2939) - Exclude circuit terminations from API interface connections endpoint
+* [#2944](https://github.com/digitalocean/netbox/issues/2944) - Record the deletion of an IP address in the changelog of its parent interface (if any)
 * [#2952](https://github.com/digitalocean/netbox/issues/2952) - Added the `slug` field to the Tenant filter for use in the API and search function
 * [#2954](https://github.com/digitalocean/netbox/issues/2954) - Remove trailing slashes to fix root/template paths on Windows
 * [#2961](https://github.com/digitalocean/netbox/issues/2961) - Prevent exception when exporting inventory items belonging to unnamed devices

+ 2 - 2
netbox/ipam/models.py

@@ -635,8 +635,8 @@ class IPAddress(ChangeLoggedModel, CustomFieldModel):
         Include the connected Interface (if any).
         """
 
-        # It's possible that an IpAddress can be deleted _after_ its parent Interface, in which case trying to resolve
-        # the component parent will raise DoesNotExist.
+        # It's possible that an IPAddress can be deleted _after_ its parent Interface, in which case trying to resolve
+        # the interface will raise DoesNotExist.
         try:
             parent_obj = self.interface
         except ObjectDoesNotExist: