blob: d305ae3b4269ed7c502fc777a881fbd5ee5bff46 [file] [log] [blame]
janani bf41dec32017-03-24 18:44:07 +05301/*
2 * Copyright 2017-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 */
16
17package org.onosproject.l3vpn.netl3vpn;
18
19/**
20 * Representation of the hub and spoke VPN configuration containing import and
21 * export RTs.
22 */
23public class HubSpokeVpnConfig extends VpnConfig {
24
25 /**
26 * Hub import RT value.
27 */
28 private String hubImpRt;
29
30 /**
31 * Hub export RT value.
32 */
33 private String hubExpRt;
34
35 /**
36 * Spoke import RT value.
37 */
38 private String spokeImpRt;
39
40 /**
41 * Spoke export RT value.
42 */
43 private String spokeExpRt;
44
45 /**
46 * Creates hub and spoke VPN config.
47 */
48 public HubSpokeVpnConfig() {
49 }
50
51 /**
52 * Returns hub import RT value.
53 *
54 * @return RT value
55 */
56 String hubImpRt() {
57 return hubImpRt;
58 }
59
60 /**
61 * Sets hub import RT value.
62 *
63 * @param hubImpRt RT value
64 */
65 void hubImpRt(String hubImpRt) {
66 this.hubImpRt = hubImpRt;
67 }
68
69 /**
70 * Returns hub export RT value.
71 *
72 * @return RT value
73 */
74 String hubExpRt() {
75 return hubExpRt;
76 }
77
78 /**
79 * Sets hub export RT value.
80 *
81 * @param hubExpRt RT value
82 */
83 void hubExpRt(String hubExpRt) {
84 this.hubExpRt = hubExpRt;
85 }
86
87 /**
88 * Returns spoke import RT value.
89 *
90 * @return RT value
91 */
92 String spokeImpRt() {
93 return spokeImpRt;
94 }
95
96 /**
97 * Sets spoke import RT value.
98 *
99 * @param spokeImpRt RT value
100 */
101 void spokeImpRt(String spokeImpRt) {
102 this.spokeImpRt = spokeImpRt;
103 }
104
105 /**
106 * Returns spoke export RT value.
107 *
108 * @return RT value
109 */
110 String spokeExpRt() {
111 return spokeExpRt;
112 }
113
114 /**
115 * Sets spoke export RT value.
116 *
117 * @param spokeExpRt RT value
118 */
119 void spokeExpRt(String spokeExpRt) {
120 this.spokeExpRt = spokeExpRt;
121 }
122}