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 D82F11076F for ; Mon, 29 Jul 2013 22:45:24 +0000 (UTC) Received: (qmail 71079 invoked by uid 500); 29 Jul 2013 22:45:24 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 71024 invoked by uid 500); 29 Jul 2013 22:45:24 -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 71016 invoked by uid 500); 29 Jul 2013 22:45:24 -0000 Delivered-To: apmail-incubator-cloudstack-dev@incubator.apache.org Received: (qmail 71010 invoked by uid 99); 29 Jul 2013 22:45:24 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 22:45:24 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id D8F461D0F1F; Mon, 29 Jul 2013 22:45:20 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0981178747041325163==" MIME-Version: 1.0 Subject: Re: Review Request 12905: Multiple VLAN range API need to accept a list rather than "add" or "remove" per command From: "Alena Prokharchyk" To: "Alena Prokharchyk" , "Sheng Yang" Cc: "cloudstack" , "bharat kumar" Date: Mon, 29 Jul 2013 22:45:20 -0000 Message-ID: <20130729224520.30929.39167@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Alena Prokharchyk" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/12905/ X-Sender: "Alena Prokharchyk" References: <20130726041801.32008.61607@reviews.apache.org> In-Reply-To: <20130726041801.32008.61607@reviews.apache.org> Reply-To: "Alena Prokharchyk" --===============0981178747041325163== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/12905/#review24182 ----------------------------------------------------------- Also the response format is incorrect. The vlan ranges have to be separated by ",", not by ";". It should be just the way they are specified in the API request. Right now it looks like this: 1 8fd221e4-71a6-478b-9b30-76e6714a855c ZONE1-pNtwk ZONE 325066e1-db7c-45b8-87e7-155af0e3cba3 Disabled 1-2;4-4;6-100 - Alena Prokharchyk On July 26, 2013, 4:17 a.m., bharat kumar wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/12905/ > ----------------------------------------------------------- > > (Updated July 26, 2013, 4:17 a.m.) > > > Review request for cloudstack, Alena Prokharchyk and Sheng Yang. > > > Bugs: Cloudstack-3753 > > > Repository: cloudstack-git > > > Description > ------- > > https://issues.apache.org/jira/browse/CLOUDSTACK-3753 > Multiple VLAN range API need to accept a list rather than "add" or "remove" per command > > > Diffs > ----- > > api/src/com/cloud/network/NetworkService.java 59ccdbf > api/src/org/apache/cloudstack/api/command/admin/network/UpdatePhysicalNetworkCmd.java 333564e > engine/schema/src/com/cloud/dc/dao/DataCenterVnetDao.java e2e6b79 > engine/schema/src/com/cloud/dc/dao/DataCenterVnetDaoImpl.java ced2982 > server/src/com/cloud/network/NetworkServiceImpl.java f1f71ca > server/test/com/cloud/network/MockNetworkManagerImpl.java 4577d0a > server/test/com/cloud/network/UpdatePhysicalNetworkTest.java e3fc36a > server/test/com/cloud/vpc/MockNetworkManagerImpl.java fd61bc6 > > Diff: https://reviews.apache.org/r/12905/diff/ > > > Testing > ------- > > Tested on master. > removed the removevlan parameter. > vlan parameter can be used for both addition and removal of valns. > instead of passing only a vlan range. user has to pass all the vlan ranges that he wants to keep. > the vlan ranges missing in the input and present in the db (not allocated) will be removed. > > > Thanks, > > bharat kumar > > --===============0981178747041325163==--