Ray Milkey | 7ec0d1b | 2015-11-13 08:51:35 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Ray Milkey | 7ec0d1b | 2015-11-13 08:51:35 -0800 | [diff] [blame] | 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 | package org.onosproject.openflow; |
| 17 | |
| 18 | import java.util.List; |
| 19 | import java.util.Set; |
| 20 | |
| 21 | import org.projectfloodlight.openflow.protocol.OFActionType; |
| 22 | import org.projectfloodlight.openflow.protocol.OFCapabilities; |
| 23 | import org.projectfloodlight.openflow.protocol.OFFeaturesReply; |
| 24 | import org.projectfloodlight.openflow.protocol.OFPortDesc; |
| 25 | import org.projectfloodlight.openflow.protocol.OFType; |
| 26 | import org.projectfloodlight.openflow.types.DatapathId; |
| 27 | import org.projectfloodlight.openflow.types.OFAuxId; |
| 28 | |
| 29 | /** |
| 30 | * Mock of the Open FLow features reply message. |
| 31 | */ |
| 32 | public class MockOfFeaturesReply extends OfMessageAdapter implements OFFeaturesReply { |
| 33 | public MockOfFeaturesReply() { |
| 34 | super(OFType.FEATURES_REPLY); |
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public DatapathId getDatapathId() { |
| 39 | return null; |
| 40 | } |
| 41 | |
| 42 | @Override |
| 43 | public long getNBuffers() { |
| 44 | return 0; |
| 45 | } |
| 46 | |
| 47 | @Override |
| 48 | public short getNTables() { |
| 49 | return 0; |
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public Set<OFCapabilities> getCapabilities() { |
| 54 | return null; |
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public long getReserved() { |
| 59 | return 0; |
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public List<OFPortDesc> getPorts() { |
| 64 | return null; |
| 65 | } |
| 66 | |
| 67 | @Override |
| 68 | public Set<OFActionType> getActions() { |
| 69 | return null; |
| 70 | } |
| 71 | |
| 72 | @Override |
| 73 | public OFAuxId getAuxiliaryId() { |
| 74 | return null; |
| 75 | } |
| 76 | |
| 77 | @Override |
| 78 | public OFFeaturesReply.Builder createBuilder() { |
| 79 | return null; |
| 80 | } |
| 81 | } |