/* * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.ovsdb.openstack.netvirt; import org.opendaylight.ovsdb.openstack.netvirt.api.Constants; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import java.util.Queue; import java.util.concurrent.ConcurrentMap; public class NodeConfiguration { private java.util.Queue internalVlans = Lists.newLinkedList(); private ConcurrentMap tenantVlanMap = Maps.newConcurrentMap(); public NodeConfiguration() { for (int i = 1; i < Constants.MAX_VLAN; i++) { internalVlans.add(i); } } public Queue getInternalVlans() { return internalVlans; } public ConcurrentMap getTenantVlanMap() { return tenantVlanMap; } }