Repository navigation
Commit 9fc97a4
committed
Check the ports passed on an ACL update before the stored ones
On update, take the source ports from the command first and fall back to
the rule's stored ports only when none was passed and the protocol is
given. This reads in the order the values apply and does not depend on
transferDataToNetworkAclRulePojo() having already copied the command's
ports onto the rule. Behaviour is unchanged: that copy runs first, so the
rule already held the command's ports when they were passed.
Signed-off-by: Brad House <bhouse@nexthop.ai>1 parent 252038f commit 9fc97a4
2 files changed
Lines changed: 21 additions & 7 deletions
File tree
- server/src
- main/java/com/cloud/network/vpc
- test/java/com/cloud/network/vpc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | | - | |
712 | | - | |
713 | | - | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
714 | 715 | | |
715 | 716 | | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
720 | 724 | | |
721 | 725 | | |
722 | 726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
587 | 597 | | |
588 | 598 | | |
589 | 599 | | |
| |||
0 commit comments