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 3171818B89 for ; Wed, 20 Jan 2016 11:08:02 +0000 (UTC) Received: (qmail 65475 invoked by uid 500); 20 Jan 2016 11:08:01 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 65410 invoked by uid 500); 20 Jan 2016 11:08:01 -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 65399 invoked by uid 99); 20 Jan 2016 11:08:01 -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; Wed, 20 Jan 2016 11:08:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4D228DFF93; Wed, 20 Jan 2016 11:08:01 +0000 (UTC) From: borisroman To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Enhance VR performance Content-Type: text/plain Message-Id: <20160120110801.4D228DFF93@git1-us-west.apache.org> Date: Wed, 20 Jan 2016 11:08:01 +0000 (UTC) Github user borisroman commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1346#discussion_r50241366 --- Diff: systemvm/patches/debian/config/opt/cloud/bin/configure.py --- @@ -901,79 +901,123 @@ def processStaticNatRule(self, rule): def main(argv): + # The file we are currently processing, if it is "cmd_line.json" everything will be processed. + process_file = argv[1] + + # process_file can be None, if so assume cmd_line.json + if process_file is None: + process_file = "cmd_line.json" + + # Track if changes need to be committed to NetFilter + iptables_change = False + + # The "GLOBAL" Configuration object config = CsConfig() + logging.basicConfig(filename=config.get_logger(), level=config.get_level(), format=config.get_format()) + + # Load stored ip adresses from disk to CsConfig() config.set_address() logging.debug("Configuring ip addresses") - # IP configuration config.address().compare() config.address().process() - logging.debug("Configuring vmpassword") - password = CsPassword("vmpassword", config) - password.process() + if process_file == "cmd_line.json" or process_file == "guest_network.json": --- End diff -- Done! --- 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. ---