blob: 3c2d062bccb6337cbc4070615a63e7597b74efa8 [file] [log] [blame]
Mohammad Shahid4c30ea32017-08-09 18:02:10 +05301/*
2 * Copyright 2017-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 */
16
17package org.onosproject.evpnopenflow.rsc;
18
Ray Milkeya95193c2017-08-10 15:35:36 -070019import org.onosproject.evpnrouteservice.EvpnInstanceName;
20import org.onosproject.evpnrouteservice.RouteDistinguisher;
21import org.onosproject.evpnrouteservice.VpnRouteTarget;
Mohammad Shahid4c30ea32017-08-09 18:02:10 +053022
23import java.util.Set;
24
25/**
26 * Representation of a VPN instance.
27 */
28public interface VpnInstance {
29
30 /**
31 * Returns the VPN instance identifier.
32 *
33 * @return VPN instance identifier
34 */
35 VpnInstanceId id();
36
37 /**
38 * Returns the VPN instance description.
39 *
40 * @return VPN instance description
41 */
42 String description();
43
44 /**
45 * Returns the VPN instance route distinguishes.
46 *
47 * @return VPN instance route distinguishes
48 */
49 RouteDistinguisher routeDistinguisher();
50
51 /**
52 * Returns the VPN instance name.
53 *
54 * @return VPN instance name
55 */
56 EvpnInstanceName vpnInstanceName();
57
58 /**
59 * Returns the export route target information.
60 *
61 * @return export route target information
62 */
63 Set<VpnRouteTarget> getExportRouteTargets();
64
65 /**
66 * Returns the import route target information.
67 *
68 * @return VPN instance ipv4 family
69 */
70 Set<VpnRouteTarget> getImportRouteTargets();
71
72 /**
73 * Returns the config route target information.
74 *
75 * @return config route target information.
76 */
77 Set<VpnRouteTarget> getConfigRouteTargets();
78}