Ray Milkey | c3aceff | 2016-11-18 12:58:23 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present 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 | */ |
Luca Prete | 092e895 | 2016-10-26 16:25:56 +0200 | [diff] [blame] | 16 | package org.onosproject.vpls; |
| 17 | |
| 18 | import com.google.common.collect.SetMultimap; |
| 19 | import org.onlab.packet.VlanId; |
| 20 | import org.onosproject.incubator.net.intf.Interface; |
| 21 | import org.onosproject.net.ConnectPoint; |
| 22 | import org.onosproject.net.EncapsulationType; |
Carolina Fernandez | b1cef5c | 2016-11-22 19:18:40 +0100 | [diff] [blame] | 23 | import org.onosproject.vpls.config.VplsConfigService; |
Luca Prete | 092e895 | 2016-10-26 16:25:56 +0200 | [diff] [blame] | 24 | |
| 25 | import java.util.Map; |
| 26 | import java.util.Set; |
| 27 | |
| 28 | /** |
| 29 | * Test adapter for VPLS configuration service. |
| 30 | */ |
Carolina Fernandez | b1cef5c | 2016-11-22 19:18:40 +0100 | [diff] [blame] | 31 | public class VplsConfigServiceAdapter implements VplsConfigService { |
Luca Prete | 092e895 | 2016-10-26 16:25:56 +0200 | [diff] [blame] | 32 | @Override |
| 33 | public void addVpls(String vplsName, Set<String> ifaces, String encap) {} |
| 34 | |
| 35 | @Override |
| 36 | public void removeVpls(String vplsName) {} |
| 37 | |
| 38 | @Override |
| 39 | public void addIface(String vplsName, String iface) {} |
| 40 | |
| 41 | @Override |
| 42 | public void setEncap(String vplsName, String encap) {} |
| 43 | |
| 44 | @Override |
| 45 | public EncapsulationType encap(String vplsName) { |
| 46 | return null; |
| 47 | } |
| 48 | |
| 49 | @Override |
| 50 | public void removeIface(String iface) {} |
| 51 | |
| 52 | @Override |
| 53 | public void cleanVplsConfig() {} |
| 54 | |
| 55 | @Override |
| 56 | public Set<String> vplsAffectedByApi() { |
| 57 | return null; |
| 58 | } |
| 59 | |
| 60 | @Override |
| 61 | public Set<Interface> allIfaces() { |
| 62 | return null; |
| 63 | } |
| 64 | |
| 65 | @Override |
Carolina Fernandez | b1cef5c | 2016-11-22 19:18:40 +0100 | [diff] [blame] | 66 | public Set<Interface> ifaces() { |
| 67 | return null; |
| 68 | } |
| 69 | |
| 70 | @Override |
Luca Prete | 092e895 | 2016-10-26 16:25:56 +0200 | [diff] [blame] | 71 | public Set<Interface> ifaces(String vplsName) { |
| 72 | return null; |
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public Set<String> vplsNames() { |
| 77 | return null; |
| 78 | } |
| 79 | |
| 80 | @Override |
| 81 | public Set<String> vplsNamesOld() { |
| 82 | return null; |
| 83 | } |
| 84 | |
| 85 | @Override |
| 86 | public SetMultimap<String, Interface> ifacesByVplsName() { |
| 87 | return null; |
| 88 | } |
| 89 | |
| 90 | @Override |
| 91 | public SetMultimap<String, Interface> ifacesByVplsName(VlanId vlan, ConnectPoint connectPoint) { |
| 92 | return null; |
| 93 | } |
| 94 | |
| 95 | @Override |
| 96 | public Map<String, EncapsulationType> encapByVplsName() { |
| 97 | return null; |
| 98 | } |
| 99 | } |