Commit 78eda30
committed
extension: apply VPC source NAT in implement(network) for VPC tiers
implementVpc() is called from startVpc()/restartVpc() which may run before
any tier network exists (e.g. at initial VPC creation time). In that case
it cannot find an anchor network and skips source NAT assignment.
Fix: also apply the VPC-level source NAT IP inside implement(network) when
the network belongs to a VPC. The script is idempotent so calling assign-ip
multiple times (once per tier implement, and again from implementVpc on
restart) is harmless.1 parent 0dc7e32 commit 78eda30
1 file changed
Lines changed: 24 additions & 10 deletions
File tree
- framework/extensions/src/main/java/org/apache/cloudstack/framework/extensions/network
Lines changed: 24 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
463 | 479 | | |
464 | | - | |
465 | | - | |
466 | 480 | | |
467 | 481 | | |
468 | 482 | | |
| |||
0 commit comments