Andrea Campanella | e408440 | 2017-12-15 15:27:31 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.onosproject.t3.impl; |
| 18 | |
| 19 | import com.google.common.collect.ImmutableMap; |
| 20 | |
| 21 | import java.util.Map; |
| 22 | |
| 23 | /** |
| 24 | * Utility class for the troubleshooting tool. |
| 25 | */ |
| 26 | final class TroubleshootUtils { |
| 27 | |
| 28 | private TroubleshootUtils() { |
| 29 | //Banning construction |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Map defining if a specific driver is for a HW switch. |
| 34 | */ |
| 35 | //Done with builder() instead of of() for clarity |
| 36 | static Map<String, Boolean> hardwareOfdpaMap = ImmutableMap.<String, Boolean>builder() |
| 37 | .put("ofdpa", true) |
| 38 | .put("ofdpa3", true) |
| 39 | .put("qmx-ofdpa3", true) |
| 40 | .put("as7712-32x-premium", true) |
| 41 | .put("as5912-54x-premium", true) |
| 42 | .put("as5916-54x-premium", true) |
| 43 | .put("accton-ofdpa3", true) |
| 44 | .put("znyx-ofdpa", true) |
| 45 | .build(); |
| 46 | } |