Handle replace and rollback cases for Port

Add prepare_for_replace and restore_after_rollback methods for port
resource. Now if port has fixed_ip address it will be correctly handled
during UpdateReplace, i.e. we detach this ip and store it in self.data.
In case, when rollback happens, fixed_ips data will be taken from
self.data of resource in _backup_stack.

Follow functional tests was added:
 - enable test with simple replacing port
 - test for failed update with rollback
 - test for failed update without rollback and second repair update

implements bp rich-network-prop

Change-Id: Id3877ed8cb1097f6c93725806d137ea67ab07466
Closes-Bug: #1455100
1 file changed
tree: 2bc26d773e4a028dbe6beca28b443cd126d654ae
  1. common/
  2. functional/
  3. scenario/