Github user jayapalu commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1450#discussion_r57422486
  
    --- Diff: server/src/com/cloud/network/router/CommandSetupHelper.java ---
    @@ -778,10 +778,11 @@ public int compare(final PublicIpAddress o1, final 
PublicIpAddress o2) {
     
                     final boolean add = ipAddr.getState() == 
IpAddress.State.Releasing ? false : true;
                     boolean sourceNat = ipAddr.isSourceNat();
    -                /* enable sourceNAT for the first ip of the public 
interface */
    -                if (firstIP) {
    -                    sourceNat = true;
    +                /* enable sourceNAT for the first ip of the public 
interface as long as it's source nat. */
    +                if (firstIP && !sourceNat) {
    --- End diff --
    
    For additional public subnet case, sourceNat should be set to 'true' to add 
a source nat rule on VR for the first ip in that subnet. This changes will 
break that.
    
    If there is no source nat rule for the additional public subnet the traffic 
to this subnet from he VMs always go through the default source nat interface.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to