Implement vcenter-manager VlanIdPool as a cyclic queue

Bug #1776440 reported by Adrian Szczepański
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
High
Unassigned
OpenContrail
New
Undecided
Unassigned

Bug Description

We need to change the behavior of VlanIdPool when a VLAN ID is being released.
Instead of getting always the lowest VLAN ID possible, we should get the next ID from the queue.
The released ID should be put in the end of the queue.

Tags: vmware
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/43724
Submitter: Adrian Szczepanski (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/43724
Committed: http://github.com/Juniper/contrail-vcenter-manager/commit/47a17189ad2fd9452d9b4f34cc0b24329d7785a4
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 47a17189ad2fd9452d9b4f34cc0b24329d7785a4
Author: Adrian Szczepański <email address hidden>
Date: Tue Jun 12 11:44:58 2018 +0200

Implement VlanIdPool as deque

VlanIdPool's available_ids is now a deque which makes VLAN ID aquisition
more deterministic.

Change-Id: Ie9a8bbf54889930eab633e3c810ea7b841c6be34
Closes-Bug: #1776440

Jeba Paulaiyan (jebap)
tags: added: vmware
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.