BUG 7264 Fix missing flows for Remote SG rule
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / netvirt / openstack / netvirt / NodeConfiguration.java
1 /*
2  * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
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
9 package org.opendaylight.netvirt.openstack.netvirt;
10
11 import org.opendaylight.netvirt.openstack.netvirt.api.Constants;
12
13 import com.google.common.collect.Lists;
14 import com.google.common.collect.Maps;
15
16 import java.util.Queue;
17 import java.util.concurrent.ConcurrentMap;
18
19 public class NodeConfiguration {
20     private java.util.Queue<Integer> internalVlans = Lists.newLinkedList();
21     private ConcurrentMap<String, Integer> tenantVlanMap = Maps.newConcurrentMap();
22
23     public NodeConfiguration() {
24         for (int i = 1; i < Constants.MAX_VLAN; i++) {
25             internalVlans.add(i);
26
27         }
28     }
29
30     public Queue<Integer> getInternalVlans() {
31         return internalVlans;
32     }
33
34     public ConcurrentMap<String, Integer> getTenantVlanMap() {
35         return tenantVlanMap;
36     }
37
38 }