If the API client updates a network object with subnets and does not send a subnet_uuid, we were allocating a new UUID. If the subnet already exists, we should reuse the subnet_uuid. Now, we read from cassandra before generating a new UUID.
Change-Id: I13426663c8a2a8e79fbf170dffb81c726506cee1
Closes-Bug: 1381779
(cherry picked from commit c2f71af5f2e9a6f31ce65e48c0e4a4c62e82f0c8)
Reviewed: https:/ /review. opencontrail. org/3799 github. org/Juniper/ contrail- controller/ commit/ 0f67b7da211fb96 1ffdf1f3b671d2f d7d3b49124
Committed: http://
Submitter: Zuul
Branch: master
commit 0f67b7da211fb96 1ffdf1f3b671d2f d7d3b49124
Author: Sachin Bansal <email address hidden>
Date: Wed Oct 15 14:56:43 2014 -0700
If the API client updates a network object with subnets and does not send a subnet_uuid, we were allocating a new UUID. If the subnet already exists, we should reuse the subnet_uuid. Now, we read from cassandra before generating a new UUID.
Change-Id: I13426663c8a2a8 e79fbf170dffb81 c726506cee1 31ce65e48c0e4a4 c62e82f0c8)
Closes-Bug: 1381779
(cherry picked from commit c2f71af5f2e9a6f