From f9925d6da89d3a1da95949d642a0357f7383c5a7 Mon Sep 17 00:00:00 2001 From: Justin Drew <2396364+jdrew82@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:10:48 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Add=20mask=5Flength=20upd?= =?UTF-8?q?ate=20to=20IPAddress.update()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integrations/dna_center/diffsync/models/nautobot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nautobot_ssot/integrations/dna_center/diffsync/models/nautobot.py b/nautobot_ssot/integrations/dna_center/diffsync/models/nautobot.py index 958b3931..267f1f0e 100644 --- a/nautobot_ssot/integrations/dna_center/diffsync/models/nautobot.py +++ b/nautobot_ssot/integrations/dna_center/diffsync/models/nautobot.py @@ -443,6 +443,8 @@ def create(cls, adapter, ids, attrs): def update(self, attrs): """Update IPAddress in Nautobot from IPAddress object.""" ipaddr = IPAddress.objects.get(id=self.uuid) + if "mask_length" in attrs: + ipaddr.mask_length = attrs["mask_length"] if "tenant" in attrs: if attrs.get("tenant"): ipaddr.tenant_id = self.adapter.tenant_map[attrs["tenant"]]