ELAN FT Support for BE
[vpnservice.git] / interfacemgr / interfacemgr-api / src / main / java / org / opendaylight / vpnservice / interfacemgr / globals / VlanInterfaceInfo.java
1 /*
2  * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. 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 package org.opendaylight.vpnservice.interfacemgr.globals;
9
10 import java.math.BigInteger;
11
12 public class VlanInterfaceInfo extends InterfaceInfo {
13
14     /**
15      * 
16      */
17     private static final long serialVersionUID = 1L;
18     private short vlanId;
19     private boolean isVlanTransparent;
20
21     public VlanInterfaceInfo(BigInteger dpId,
22             String portName, short vlanId) {
23         super(dpId, portName);
24         this.vlanId = vlanId;
25     }
26
27     public VlanInterfaceInfo(String portName, short vlanId) {
28         super(portName);
29         this.vlanId = vlanId;
30     }
31
32     public short getVlanId() {
33         return vlanId;
34     }
35
36     public void setVlanId(short vlanId) {
37         this.vlanId = vlanId;
38     }
39
40     public boolean isVlanTransparent() {
41         return isVlanTransparent;
42     }
43
44     public void setVlanTransparent(boolean isVlanTransparent) {
45         this.isVlanTransparent = isVlanTransparent;
46     }
47 }