blob: c23ccd86f5e2896cef91029fe8baddc94682e506 [file] [log] [blame]
Daniel Park4d486842018-07-24 17:06:43 +09001/*
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 */
16package org.onosproject.openstacknetworking.impl;
17
18import org.openstack4j.model.network.RouterInterface;
19
20/**
21 * Test implementation class of router interface.
22 */
23public final class TestRouterInterface implements RouterInterface {
24 private final String id;
25 private final String subnetId;
26 private final String portId;
27 private final String tenantId;
28
29 public TestRouterInterface(String id, String subnetId,
30 String portId, String tenantId) {
31 this.id = id;
32 this.subnetId = subnetId;
33 this.portId = portId;
34 this.tenantId = tenantId;
35 }
36
37 @Override
38 public String getId() {
39 return id;
40 }
41
42 @Override
43 public String getSubnetId() {
44 return subnetId;
45 }
46
47 @Override
48 public String getPortId() {
49 return portId;
50 }
51
52 @Override
53 public String getTenantId() {
54 return tenantId;
55 }
56}