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; |
Pavel | 84e4ffe | 2016-02-17 15:10:04 +0100 | [diff] [blame^] | 41 | public final int linkMtu; |
Dave Wallace | bf8c15e | 2015-12-17 20:54:54 -0500 | [diff] [blame] | 42 | |
| 43 | public vppInterfaceDetails(int ifIndex, String interfaceName, int supIfIndex, byte[] physAddr, byte adminUp, |
| 44 | byte linkUp, byte linkDuplex, byte linkSpeed, int subId, byte subDot1ad, byte subNumberOfTags, |
| 45 | int subOuterVlanId, int subInnerVlanId, byte subExactMatch, byte subDefault, byte subOuterVlanIdAny, |
Pavel | 84e4ffe | 2016-02-17 15:10:04 +0100 | [diff] [blame^] | 46 | byte subInnerVlanIdAny, int vtrOp, int vtrPushDot1q, int vtrTag1, int vtrTag2, int linkMtu) |
Dave Wallace | bf8c15e | 2015-12-17 20:54:54 -0500 | [diff] [blame] | 47 | { |
| 48 | this.ifIndex = ifIndex; |
| 49 | this.interfaceName = interfaceName; |
| 50 | this.supIfIndex = supIfIndex; |
| 51 | this.physAddr = physAddr; |
| 52 | this.adminUp = adminUp; |
| 53 | this.linkUp = linkUp; |
| 54 | this.linkDuplex = linkDuplex; |
| 55 | this.linkSpeed = linkSpeed; |
| 56 | this.subId = subId; |
| 57 | this.subDot1ad = subDot1ad; |
| 58 | this.subNumberOfTags = subNumberOfTags; |
| 59 | this.subOuterVlanId = subOuterVlanId; |
| 60 | this.subInnerVlanId = subInnerVlanId; |
| 61 | this.subExactMatch = subExactMatch; |
| 62 | this.subDefault = subDefault; |
| 63 | this.subOuterVlanIdAny = subOuterVlanIdAny; |
| 64 | this.subInnerVlanIdAny = subInnerVlanIdAny; |
| 65 | this.vtrOp = vtrOp; |
| 66 | this.vtrPushDot1q = vtrPushDot1q; |
| 67 | this.vtrTag1 = vtrTag1; |
| 68 | this.vtrTag2 = vtrTag2; |
Pavel | 84e4ffe | 2016-02-17 15:10:04 +0100 | [diff] [blame^] | 69 | this.linkMtu = linkMtu; |
Dave Wallace | bf8c15e | 2015-12-17 20:54:54 -0500 | [diff] [blame] | 70 | } |
| 71 | } |