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 7C65E200D33 for ; Wed, 25 Oct 2017 07:35:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7B7D4160BF1; Wed, 25 Oct 2017 05:35:06 +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 C28AD1609C8 for ; Wed, 25 Oct 2017 07:35:05 +0200 (CEST) Received: (qmail 3802 invoked by uid 500); 25 Oct 2017 05:35:04 -0000 Mailing-List: contact issues-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 issues@cloudstack.apache.org Received: (qmail 3793 invoked by uid 500); 25 Oct 2017 05:35:04 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 3790 invoked by uid 99); 25 Oct 2017 05:35:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2017 05:35:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CAFB41A02F1 for ; Wed, 25 Oct 2017 05:35:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id QhYUrgMKEbq4 for ; Wed, 25 Oct 2017 05:35:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CC5AC5F477 for ; Wed, 25 Oct 2017 05:35:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B6192E0F3B for ; Wed, 25 Oct 2017 05:35:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 60111212FE for ; Wed, 25 Oct 2017 05:35:00 +0000 (UTC) Date: Wed, 25 Oct 2017 05:35:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-10047) DVSwitch improvements MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 25 Oct 2017 05:35:06 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-10047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16218123#comment-16218123 ] ASF GitHub Bot commented on CLOUDSTACK-10047: --------------------------------------------- rhtyd commented on a change in pull request #2293: CLOUDSTACK-10047: DVSwitch fixes and improvements URL: https://github.com/apache/cloudstack/pull/2293#discussion_r146758494 ########## File path: engine/schema/src/com/cloud/dc/dao/DataCenterVnetDaoImpl.java ########## @@ -100,29 +103,43 @@ public void lockRange(long dcId, long physicalNetworkId, Integer start, Integer } @Override - public List findVnet(long dcId, String vnet) { - SearchCriteria sc = VnetDcSearch.create(); - ; - sc.setParameters("dc", dcId); - sc.setParameters("vnet", vnet); - return listBy(sc); - } - - @Override public int countZoneVlans(long dcId, boolean onlyCountAllocated) { SearchCriteria sc = onlyCountAllocated ? countAllocatedZoneVlans.create() : countZoneVlans.create(); sc.setParameters("dc", dcId); return customSearch(sc, null).get(0); } - @Override - public List findVnet(long dcId, long physicalNetworkId, String vnet) { + private List findOverlappingVnets(final long dcId, final Long physicalNetworkId, final String vnet) { + final List searchVnets = UriUtils.expandVlanUri(vnet); + final List overlappingVnets = new ArrayList<>(); + if (searchVnets == null || searchVnets.size() == 0) { Review comment: Thanks, fixed. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org > DVSwitch improvements > --------------------- > > Key: CLOUDSTACK-10047 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10047 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Rohit Yadav > Assignee: Rohit Yadav > Fix For: Future, 4.11.0.0 > > > All vlan trunking and list of vlan id/range, along with security policy settings on dvswitches. -- This message was sent by Atlassian JIRA (v6.4.14#64029)