Dave Wallace | bf8c15e | 2015-12-17 20:54:54 -0500 | [diff] [blame] | 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 | |
Robert Varga | 004da76 | 2016-01-31 12:25:45 +0100 | [diff] [blame^] | 18 | public final class vppInterfaceDetails { |
| 19 | public final int ifIndex; |
| 20 | public final String interfaceName; |
| 21 | public final int supIfIndex; |
| 22 | // FIXME: this is dangerous |
| 23 | public final byte[] physAddr; |
| 24 | public final byte adminUp; |
| 25 | public final byte linkUp; |
| 26 | public final byte linkDuplex; |
| 27 | public final byte linkSpeed; |
| 28 | public final int subId; |
| 29 | public final byte subDot1ad; |
| 30 | public final byte subNumberOfTags; |
| 31 | public final int subOuterVlanId; |
| 32 | public final int subInnerVlanId; |
| 33 | public final byte subExactMatch; |
| 34 | public final byte subDefault; |
| 35 | public final byte subOuterVlanIdAny; |
| 36 | public final byte subInnerVlanIdAny; |
| 37 | public final int vtrOp; |
| 38 | public final int vtrPushDot1q; |
| 39 | public final int vtrTag1; |
| 40 | public final int vtrTag2; |
Dave Wallace | bf8c15e | 2015-12-17 20:54:54 -0500 | [diff] [blame] | 41 | |
| 42 | public vppInterfaceDetails(int ifIndex, String interfaceName, int supIfIndex, byte[] physAddr, byte adminUp, |
| 43 | byte linkUp, byte linkDuplex, byte linkSpeed, int subId, byte subDot1ad, byte subNumberOfTags, |
| 44 | int subOuterVlanId, int subInnerVlanId, byte subExactMatch, byte subDefault, byte subOuterVlanIdAny, |
| 45 | byte subInnerVlanIdAny, int vtrOp, int vtrPushDot1q, int vtrTag1, int vtrTag2) |
| 46 | { |
| 47 | this.ifIndex = ifIndex; |
| 48 | this.interfaceName = interfaceName; |
| 49 | this.supIfIndex = supIfIndex; |
| 50 | this.physAddr = physAddr; |
| 51 | this.adminUp = adminUp; |
| 52 | this.linkUp = linkUp; |
| 53 | this.linkDuplex = linkDuplex; |
| 54 | this.linkSpeed = linkSpeed; |
| 55 | this.subId = subId; |
| 56 | this.subDot1ad = subDot1ad; |
| 57 | this.subNumberOfTags = subNumberOfTags; |
| 58 | this.subOuterVlanId = subOuterVlanId; |
| 59 | this.subInnerVlanId = subInnerVlanId; |
| 60 | this.subExactMatch = subExactMatch; |
| 61 | this.subDefault = subDefault; |
| 62 | this.subOuterVlanIdAny = subOuterVlanIdAny; |
| 63 | this.subInnerVlanIdAny = subInnerVlanIdAny; |
| 64 | this.vtrOp = vtrOp; |
| 65 | this.vtrPushDot1q = vtrPushDot1q; |
| 66 | this.vtrTag1 = vtrTag1; |
| 67 | this.vtrTag2 = vtrTag2; |
| 68 | } |
| 69 | } |