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 E77DB11C59 for ; Mon, 14 Apr 2014 21:38:42 +0000 (UTC) Received: (qmail 24735 invoked by uid 500); 14 Apr 2014 21:38:39 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 24507 invoked by uid 500); 14 Apr 2014 21:38:39 -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 24337 invoked by uid 99); 14 Apr 2014 21:38:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 21:38:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Alena.Prokharchyk@citrix.com designates 66.165.176.63 as permitted sender) Received: from [66.165.176.63] (HELO SMTP02.CITRIX.COM) (66.165.176.63) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 21:38:33 +0000 X-IronPort-AV: E=Sophos;i="4.97,859,1389744000"; d="scan'208";a="119902606" Received: from sjcpex01cl01.citrite.net ([10.216.14.143]) by FTLPIPO02.CITRIX.COM with ESMTP/TLS/AES128-SHA; 14 Apr 2014 21:38:13 +0000 Received: from SJCPEX01CL02.citrite.net ([169.254.2.118]) by SJCPEX01CL01.citrite.net ([10.216.14.143]) with mapi id 14.03.0123.003; Mon, 14 Apr 2014 14:38:12 -0700 From: Alena Prokharchyk To: Murali Reddy , "dev@cloudstack.apache.org" Subject: Network state machine Thread-Topic: Network state machine Thread-Index: AQHPWCnVL5i31+/SPki0k9r/2H5K+Q== Date: Mon, 14 Apr 2014 21:38:12 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.9.131030 x-originating-ip: [10.13.107.78] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <1CC853CF97AA454F9BCF0334080CB79D@citrix.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Murali, I have a question to you. In NetworkOrchestrator, implementNetwork code, when we update the state for the network, why don=B9t we use state machine for Shared networks, but instead update it directly in the DB? if (isSharedNetworkWithServices(network)) { network.setState(Network.State.Implementing); } else { stateTransitTo(network, Event.ImplementNetwork); } That doesn=B9t seem right to me as there should be no exception when it comes to state update - the state machine should always be used once its implemented for the object. If your code needs additional state transitions for the Setup state, why can=B9t you add it? Thanks, Alena.