Refactor of the OVSDB Plugin
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / NodeConfiguration.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Authors : Dave Tucker
9  */
10 package org.opendaylight.ovsdb.openstack.netvirt;
11
12 import org.opendaylight.ovsdb.openstack.netvirt.api.Constants;
13
14 import com.google.common.collect.Lists;
15 import com.google.common.collect.Maps;
16
17 import java.util.Queue;
18 import java.util.concurrent.ConcurrentMap;
19
20 public class NodeConfiguration {
21     private java.util.Queue<Integer> internalVlans = Lists.newLinkedList();
22     private ConcurrentMap<String, Integer> tenantVlanMap = Maps.newConcurrentMap();
23
24     public NodeConfiguration() {
25         for (int i = 1; i < Constants.MAX_VLAN; i++) {
26             internalVlans.add(i);
27
28         }
29     }
30
31     public Queue<Integer> getInternalVlans() {
32         return internalVlans;
33     }
34
35     public ConcurrentMap<String, Integer> getTenantVlanMap() {
36         return tenantVlanMap;
37     }
38
39 }