Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8C7082004C8 for ; Mon, 9 May 2016 16:11:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8B6D916099C; Mon, 9 May 2016 14:11:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CC28B160A0F for ; Mon, 9 May 2016 16:11:19 +0200 (CEST) Received: (qmail 91439 invoked by uid 500); 9 May 2016 14:11:16 -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 91356 invoked by uid 99); 9 May 2016 14:11:15 -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; Mon, 09 May 2016 14:11:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 99BBDDFBD6; Mon, 9 May 2016 14:11:15 +0000 (UTC) From: nlivens To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: CLOUDSTACK-9165 unable to use reserved IP... Content-Type: text/plain Message-Id: <20160509141115.99BBDDFBD6@git1-us-west.apache.org> Date: Mon, 9 May 2016 14:11:15 +0000 (UTC) archived-at: Mon, 09 May 2016 14:11:20 -0000 Github user nlivens commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1246#discussion_r62503852 --- Diff: server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java --- @@ -1588,6 +1588,16 @@ protected StringBuilder createGuestBootLoadArgs(final NicProfile guestNic, final return buf; } + /** + * Return a string representing network Cidr for the specifeid network + * @param guestNetwork + * @return valid network Cidr for the specified network + */ + protected String getValidNetworkCidr(Network guestNetwork){ --- End diff -- I think you should extract this method to another common class (e.g. NetworkModel) since this method can be reused over the different classes. --- 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. ---