-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix export_info NIC IP address update
This patch makes sure that exported instances never lose IP addressing information, even after replicating with instance off.
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Provider receives first IP address | ||
- old_export_info: | ||
devices: | ||
nics: [] | ||
new_export_info: | ||
devices: | ||
nics: | ||
- id: 1 | ||
ip_addresses: ['10.0.0.1'] | ||
expected_export_info: | ||
devices: | ||
nics: | ||
- id: 1 | ||
ip_addresses: ['10.0.0.1'] | ||
|
||
# Export NIC changes | ||
- old_export_info: | ||
devices: | ||
nics: | ||
- id: 1 | ||
ip_addresses: ['10.0.0.1'] | ||
new_export_info: | ||
devices: | ||
nics: | ||
- id: 2 | ||
ip_addresses: [] | ||
expected_export_info: | ||
devices: | ||
nics: | ||
- id: 2 | ||
ip_addresses: [] | ||
|
||
# Export NIC doesn't report IP address (result keeps old one) | ||
- old_export_info: | ||
devices: | ||
nics: | ||
- id: 1 | ||
ip_addresses: ['10.0.0.1'] | ||
new_export_info: | ||
devices: | ||
nics: | ||
- id: 1 | ||
ip_addresses: [] | ||
expected_export_info: | ||
devices: | ||
nics: | ||
- id: 1 | ||
ip_addresses: ['10.0.0.1'] | ||
|
||
# No NICs get reported | ||
- old_export_info: | ||
devices: | ||
nics: | ||
- id: 1 | ||
ip_addresses: ['10.0.0.1'] | ||
new_export_info: | ||
devices: | ||
nics: [] | ||
expected_export_info: | ||
devices: | ||
nics: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters