Ray Milkey | 8526700 | 2016-11-16 11:06:35 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Ray Milkey | 8526700 | 2016-11-16 11:06: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 | */ |
Avantika-Huawei | 9e848e8 | 2016-09-01 12:12:42 +0530 | [diff] [blame] | 16 | package org.onosproject.pcelabelstore.util; |
| 17 | |
mohamedrahil | 00f6f26 | 2016-11-24 20:20:41 +0530 | [diff] [blame] | 18 | |
Avantika-Huawei | 9e848e8 | 2016-09-01 12:12:42 +0530 | [diff] [blame] | 19 | |
| 20 | import org.onosproject.incubator.net.tunnel.DefaultLabelStack; |
| 21 | import org.onosproject.incubator.net.tunnel.LabelStack; |
| 22 | import org.onosproject.incubator.net.tunnel.Tunnel; |
| 23 | import org.onosproject.net.Path; |
harikrushna-Huawei | a2c7c20 | 2017-04-10 18:22:00 +0530 | [diff] [blame^] | 24 | import org.onosproject.pcep.server.PccId; |
| 25 | import org.onosproject.pcep.server.PcepClient; |
| 26 | import org.onosproject.pcep.server.PcepClientController; |
| 27 | import org.onosproject.pcep.server.PcepClientListener; |
| 28 | import org.onosproject.pcep.server.PcepEventListener; |
| 29 | import org.onosproject.pcep.server.PcepNodeListener; |
Avantika-Huawei | 9e848e8 | 2016-09-01 12:12:42 +0530 | [diff] [blame] | 30 | import org.onosproject.pcepio.protocol.PcepMessage; |
| 31 | import org.onosproject.pcepio.types.PcepValueType; |
| 32 | |
mohamedrahil | 00f6f26 | 2016-11-24 20:20:41 +0530 | [diff] [blame] | 33 | import java.util.Collection; |
| 34 | import java.util.HashMap; |
| 35 | import java.util.LinkedList; |
| 36 | import java.util.Map; |
| 37 | import java.util.List; |
| 38 | |
Avantika-Huawei | 9e848e8 | 2016-09-01 12:12:42 +0530 | [diff] [blame] | 39 | public class MockPcepClientController implements PcepClientController { |
| 40 | |
| 41 | Map<PccId, PcepClient> clientMap = new HashMap<>(); |
| 42 | |
| 43 | @Override |
| 44 | public Collection<PcepClient> getClients() { |
| 45 | // TODO Auto-generated method stub |
| 46 | return null; |
| 47 | } |
| 48 | |
| 49 | public void addClient(PccId pccId, PcepClient pc) { |
| 50 | clientMap.put(pccId, pc); |
| 51 | return; |
| 52 | } |
| 53 | |
| 54 | @Override |
| 55 | public PcepClient getClient(PccId pccId) { |
| 56 | return clientMap.get(pccId); |
| 57 | } |
| 58 | |
| 59 | @Override |
| 60 | public void addListener(PcepClientListener listener) { |
| 61 | // TODO Auto-generated method stub |
| 62 | |
| 63 | } |
| 64 | |
| 65 | @Override |
| 66 | public void removeListener(PcepClientListener listener) { |
| 67 | // TODO Auto-generated method stub |
| 68 | |
| 69 | } |
| 70 | |
| 71 | @Override |
| 72 | public void addEventListener(PcepEventListener listener) { |
| 73 | // TODO Auto-generated method stub |
| 74 | |
| 75 | } |
| 76 | |
| 77 | @Override |
| 78 | public void removeEventListener(PcepEventListener listener) { |
| 79 | // TODO Auto-generated method stub |
| 80 | |
| 81 | } |
| 82 | |
| 83 | @Override |
| 84 | public void addNodeListener(PcepNodeListener listener) { |
| 85 | // TODO Auto-generated method stub |
| 86 | |
| 87 | } |
| 88 | |
| 89 | @Override |
| 90 | public void removeNodeListener(PcepNodeListener listener) { |
| 91 | // TODO Auto-generated method stub |
| 92 | |
| 93 | } |
| 94 | |
| 95 | @Override |
| 96 | public void writeMessage(PccId pccId, PcepMessage msg) { |
| 97 | // TODO Auto-generated method stub |
| 98 | |
| 99 | } |
| 100 | |
| 101 | @Override |
| 102 | public void processClientMessage(PccId pccId, PcepMessage msg) { |
| 103 | // TODO Auto-generated method stub |
| 104 | |
| 105 | } |
| 106 | |
| 107 | @Override |
| 108 | public void closeConnectedClients() { |
| 109 | // TODO Auto-generated method stub |
| 110 | |
| 111 | } |
| 112 | |
| 113 | @Override |
| 114 | public LabelStack computeLabelStack(Path path) { |
| 115 | // TODO Auto-generated method stub |
| 116 | return null; |
| 117 | } |
| 118 | |
| 119 | @Override |
| 120 | public LinkedList<PcepValueType> createPcepLabelStack(DefaultLabelStack labelStack, Path path) { |
| 121 | // TODO Auto-generated method stub |
| 122 | return null; |
| 123 | } |
| 124 | |
| 125 | @Override |
mohamedrahil | 00f6f26 | 2016-11-24 20:20:41 +0530 | [diff] [blame] | 126 | public Map<String, List<String>> getPcepExceptions() { |
| 127 | return null; |
| 128 | } |
| 129 | |
| 130 | @Override |
| 131 | public Map<Integer, Integer> getPcepErrorMsg() { |
| 132 | return null; |
| 133 | } |
| 134 | |
| 135 | @Override |
| 136 | public Map<String, String> getPcepSessionMap() { |
| 137 | return null; |
| 138 | } |
| 139 | |
| 140 | @Override |
| 141 | public Map<String, Byte> getPcepSessionIdMap() { |
| 142 | return null; |
| 143 | } |
| 144 | |
| 145 | @Override |
| 146 | public void peerErrorMsg(String peerId, Integer errorType, Integer errValue) { |
| 147 | |
| 148 | } |
| 149 | |
| 150 | @Override |
Avantika-Huawei | 9e848e8 | 2016-09-01 12:12:42 +0530 | [diff] [blame] | 151 | public boolean allocateLocalLabel(Tunnel tunnel) { |
| 152 | // TODO Auto-generated method stub |
| 153 | return false; |
| 154 | } |
| 155 | |
| 156 | } |