blob: f0b6c4b9d7bfbb5e9918f19a3c54ffbd0dc20d84 [file] [log] [blame]
Jian Li152b8852015-12-07 14:47:25 -08001/*
2 * Copyright 2015 Open Networking Laboratory
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 */
16package org.onosproject.openflow.controller.driver;
17
18
19import org.projectfloodlight.openflow.protocol.OFFlowMod;
20import org.projectfloodlight.openflow.protocol.OFFlowModCommand;
21import org.projectfloodlight.openflow.protocol.OFType;
22import org.projectfloodlight.openflow.protocol.OFFlowModFlags;
23import org.projectfloodlight.openflow.protocol.action.OFAction;
24import org.projectfloodlight.openflow.protocol.instruction.OFInstruction;
25import org.projectfloodlight.openflow.protocol.match.Match;
26import org.projectfloodlight.openflow.types.OFBufferId;
27import org.projectfloodlight.openflow.types.OFPort;
28import org.projectfloodlight.openflow.types.TableId;
29import org.projectfloodlight.openflow.types.U64;
30import org.projectfloodlight.openflow.types.OFGroup;
31
32import java.util.List;
33import java.util.Set;
34
35/**
36 * Mock of the Open Flow flow mod message.
37 */
38public class MockOfFlowMod extends OfMessageAdapter implements OFFlowMod {
39
40 public MockOfFlowMod() {
41 super(OFType.FLOW_MOD);
42 }
43
44 @Override
45 public U64 getCookie() {
46 return null;
47 }
48
49 @Override
50 public U64 getCookieMask() throws UnsupportedOperationException {
51 return null;
52 }
53
54 @Override
55 public TableId getTableId() throws UnsupportedOperationException {
56 return null;
57 }
58
59 @Override
60 public OFFlowModCommand getCommand() {
61 return null;
62 }
63
64 @Override
65 public int getIdleTimeout() {
66 return 0;
67 }
68
69 @Override
70 public int getHardTimeout() {
71 return 0;
72 }
73
74 @Override
75 public int getPriority() {
76 return 0;
77 }
78
79 @Override
80 public OFBufferId getBufferId() {
81 return null;
82 }
83
84 @Override
85 public OFPort getOutPort() {
86 return null;
87 }
88
89 @Override
90 public OFGroup getOutGroup() throws UnsupportedOperationException {
91 return null;
92 }
93
94 @Override
95 public Set<OFFlowModFlags> getFlags() {
96 return null;
97 }
98
99 @Override
100 public Match getMatch() {
101 return null;
102 }
103
104 @Override
105 public List<OFInstruction> getInstructions() throws UnsupportedOperationException {
106 return null;
107 }
108
109 @Override
110 public List<OFAction> getActions() throws UnsupportedOperationException {
111 return null;
112 }
113
114 @Override
115 public OFFlowMod.Builder createBuilder() {
116 return null;
117 }
118}