[CORD-3226] Adding support for dual stack IPs
Change-Id: I75919b9a16d4e8e7f03fdce9b7294b1c43ce0ecd
diff --git a/xos/synchronizer/event_steps/dhcp_event.py b/xos/synchronizer/event_steps/dhcp_event.py
index ddd1e31..74a7696 100644
--- a/xos/synchronizer/event_steps/dhcp_event.py
+++ b/xos/synchronizer/event_steps/dhcp_event.py
@@ -43,16 +43,5 @@
si.dhcp_state = value["messageType"];
si.ip_address = value["ipAddress"];
si.mac_address = value["macAddress"];
+
si.save_changed_fields(always_update_timestamp=True)
- # subscriber = RCORDSubscriber.objects.get(onu_device=onu_sn)
- #
- #
- # # NOTE it will be better to update the SI and use the model policy to update the subscriber,
- # # if this fails for any reason the event is lost
- #
- # if value["messageType"] == "DHCPACK":
- #
- # # FIXME apparently it's always saving
- # subscriber.ip_address = value["ipAddress"]
- # subscriber.mac_address = value["macAddress"]
- # subscriber.save()