8bc94d20bbf5e929c0d3aa7e263c33bcc4d5e16c
[vpp.git] / vpp-japi / japi / org / openvpp / vppjapi / vppInterfaceDetails.java
1 /*
2  * Copyright (c) 2015 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15
16 package org.openvpp.vppjapi;
17
18 public class vppInterfaceDetails {
19     public int ifIndex;
20     public String interfaceName;
21     public int supIfIndex;
22     public byte[] physAddr;
23     public byte adminUp;
24     public byte linkUp;
25     public byte linkDuplex;
26     public byte linkSpeed;
27     public int subId;
28     public byte subDot1ad;
29     public byte subNumberOfTags;
30     public int subOuterVlanId;
31     public int subInnerVlanId;
32     public byte subExactMatch;
33     public byte subDefault;
34     public byte subOuterVlanIdAny;
35     public byte subInnerVlanIdAny;
36     public int vtrOp;
37     public int vtrPushDot1q;
38     public int vtrTag1;
39     public int vtrTag2;
40
41     public vppInterfaceDetails(int ifIndex, String interfaceName, int supIfIndex, byte[] physAddr, byte adminUp,
42             byte linkUp, byte linkDuplex, byte linkSpeed, int subId, byte subDot1ad, byte subNumberOfTags,
43             int subOuterVlanId, int subInnerVlanId, byte subExactMatch, byte subDefault, byte subOuterVlanIdAny,
44             byte subInnerVlanIdAny, int vtrOp, int vtrPushDot1q, int vtrTag1, int vtrTag2)
45     {
46         this.ifIndex = ifIndex;
47         this.interfaceName = interfaceName;
48         this.supIfIndex = supIfIndex;
49         this.physAddr = physAddr;
50         this.adminUp = adminUp;
51         this.linkUp = linkUp;
52         this.linkDuplex = linkDuplex;
53         this.linkSpeed = linkSpeed;
54         this.subId = subId;
55         this.subDot1ad = subDot1ad;
56         this.subNumberOfTags = subNumberOfTags;
57         this.subOuterVlanId = subOuterVlanId;
58         this.subInnerVlanId = subInnerVlanId;
59         this.subExactMatch = subExactMatch;
60         this.subDefault = subDefault;
61         this.subOuterVlanIdAny = subOuterVlanIdAny;
62         this.subInnerVlanIdAny = subInnerVlanIdAny;
63         this.vtrOp = vtrOp;
64         this.vtrPushDot1q = vtrPushDot1q;
65         this.vtrTag1 = vtrTag1;
66         this.vtrTag2 = vtrTag2;
67     }
68 }