Only apply necessary changes to subnets

Previously, all subnet properties were updated if any value did not match.
But this behaviour caused errors like e.g. "Current gateway ip 192.168.0.1
already in use by port [ID]. Unable to update." even if that gateway was
not about to be changed.

Task: 40927
Story: 2008172
Change-Id: I049b0dade4c7ea3e1ef24777ae558f650caa136c
This commit is contained in:
Jakob Meng
2020-09-21 14:31:35 +02:00
committed by Shnaidman Sagi (Sergey)
parent a89ec027b0
commit ce421fe370
2 changed files with 19 additions and 22 deletions

View File

@@ -37,6 +37,7 @@
name: "{{ subnet_name }}"
state: present
cidr: 192.168.0.0/24
gateway_ip: 192.168.0.1
allocation_pool_start: 192.168.0.2
allocation_pool_end: 192.168.0.8