Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0EAFC19C7E for ; Tue, 29 Mar 2016 09:51:59 +0000 (UTC) Received: (qmail 88834 invoked by uid 500); 29 Mar 2016 09:51:58 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 88774 invoked by uid 500); 29 Mar 2016 09:51:58 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 88751 invoked by uid 99); 29 Mar 2016 09:51:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2016 09:51:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 10636DFDE0; Tue, 29 Mar 2016 09:51:58 +0000 (UTC) From: ProjectMoon To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: CLOUDSTACK-9317: Enable/disable static NA... Content-Type: text/plain Message-Id: <20160329095158.10636DFDE0@git1-us-west.apache.org> Date: Tue, 29 Mar 2016 09:51:58 +0000 (UTC) Github user ProjectMoon commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1450#discussion_r57697669 --- 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 -- How do I trigger this case using the CS API? Is it by adding multiple NICs to the virtual router? --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. ---