blob: 99e6e2842e8ce3a5e1eefc4ccf336dfcd726976a [file] [log] [blame]
Phanendra Manda972ee9e2015-08-21 19:08:20 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Phanendra Manda972ee9e2015-08-21 19:08:20 +05303 *
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.provider.pcep.tunnel.impl;
17
Phanendra Manda972ee9e2015-08-21 19:08:20 +053018import org.junit.After;
Priyanka Bd2b28882016-04-04 16:57:04 +053019import org.junit.Before;
Phanendra Manda972ee9e2015-08-21 19:08:20 +053020import org.junit.Test;
Ray Milkeya7cf8c82018-02-08 15:07:06 -080021import org.onlab.graph.ScalarWeight;
Phanendra Manda972ee9e2015-08-21 19:08:20 +053022import org.onlab.packet.IpAddress;
chengfan2fff70f2015-08-24 18:20:19 -050023import org.onosproject.cfg.ComponentConfigAdapter;
Yi Tsengfa394de2017-02-01 11:26:40 -080024import org.onosproject.core.GroupId;
Phanendra Manda972ee9e2015-08-21 19:08:20 +053025import org.onosproject.incubator.net.tunnel.DefaultTunnel;
26import org.onosproject.incubator.net.tunnel.IpTunnelEndPoint;
27import org.onosproject.incubator.net.tunnel.Tunnel;
28import org.onosproject.incubator.net.tunnel.TunnelId;
29import org.onosproject.incubator.net.tunnel.TunnelName;
Ray Milkeyd1c34da2018-06-22 18:10:53 -070030import org.onosproject.incubator.net.tunnel.TunnelServiceAdapter;
Avantika-Huawei56c11842016-04-28 00:56:56 +053031import org.onosproject.net.Annotations;
Phanendra Manda972ee9e2015-08-21 19:08:20 +053032import org.onosproject.net.ConnectPoint;
Avantika-Huawei56c11842016-04-28 00:56:56 +053033import org.onosproject.net.DefaultAnnotations;
Phanendra Manda972ee9e2015-08-21 19:08:20 +053034import org.onosproject.net.DefaultLink;
35import org.onosproject.net.DefaultPath;
36import org.onosproject.net.IpElementId;
37import org.onosproject.net.Link;
38import org.onosproject.net.Path;
39import org.onosproject.net.PortNumber;
40import org.onosproject.net.provider.ProviderId;
Ray Milkeyd1c34da2018-06-22 18:10:53 -070041import org.onosproject.pcep.api.PcepControllerAdapter;
harikrushna-Huaweia2c7c202017-04-10 18:22:00 +053042import org.onosproject.pcep.server.ClientCapability;
43import org.onosproject.pcep.server.LspKey;
44import org.onosproject.pcep.server.PccId;
Ray Milkeyd1c34da2018-06-22 18:10:53 -070045import org.onosproject.pcep.server.PcepClientAdapter;
46import org.onosproject.pcep.server.PcepClientControllerAdapter;
Priyanka B413fbe82016-05-26 11:44:45 +053047import org.onosproject.pcepio.protocol.PcepVersion;
Avantika-Huawei56c11842016-04-28 00:56:56 +053048import org.onosproject.pcepio.types.StatefulIPv4LspIdentifiersTlv;
Phanendra Manda972ee9e2015-08-21 19:08:20 +053049
Ray Milkeyd1c34da2018-06-22 18:10:53 -070050import java.io.IOException;
51import java.util.ArrayList;
52import java.util.List;
53
54import static org.hamcrest.MatcherAssert.assertThat;
55import static org.hamcrest.Matchers.nullValue;
56import static org.hamcrest.core.Is.is;
57import static org.hamcrest.core.IsNot.not;
58import static org.onosproject.net.DefaultAnnotations.EMPTY;
harikrushna-Huaweia2c7c202017-04-10 18:22:00 +053059import static org.onosproject.pcep.server.LspType.SR_WITHOUT_SIGNALLING;
60import static org.onosproject.pcep.server.LspType.WITHOUT_SIGNALLING_AND_WITHOUT_SR;
Ray Milkeyd1c34da2018-06-22 18:10:53 -070061import static org.onosproject.pcep.server.LspType.WITH_SIGNALLING;
62import static org.onosproject.pcep.server.PcepAnnotationKeys.LOCAL_LSP_ID;
63import static org.onosproject.pcep.server.PcepAnnotationKeys.LSP_SIG_TYPE;
64import static org.onosproject.pcep.server.PcepAnnotationKeys.PLSP_ID;
Priyanka Bd2b28882016-04-04 16:57:04 +053065/**
66 * Test for PCEP update tunnel.
67 */
Phanendra Manda972ee9e2015-08-21 19:08:20 +053068public class PcepUpdateTunnelProviderTest {
69
Brian Stanke9a108972016-04-11 15:25:17 -040070 private static final String PROVIDER_ID = "org.onosproject.provider.tunnel.pcep";
Priyanka Bd2b28882016-04-04 16:57:04 +053071 private PcepTunnelProvider tunnelProvider = new PcepTunnelProvider();
Phanendra Manda972ee9e2015-08-21 19:08:20 +053072 private final TunnelProviderRegistryAdapter registry = new TunnelProviderRegistryAdapter();
73 private final PcepClientControllerAdapter controller = new PcepClientControllerAdapter();
74 private final PcepControllerAdapter ctl = new PcepControllerAdapter();
75 private final PcepTunnelApiMapper pcepTunnelAPIMapper = new PcepTunnelApiMapper();
Ray Milkeyd1c34da2018-06-22 18:10:53 -070076 private final TunnelServiceAdapter tunnelService = new TunnelServiceAdapter();
chengfan2fff70f2015-08-24 18:20:19 -050077
Priyanka Bd2b28882016-04-04 16:57:04 +053078 @Before
79 public void setUp() throws IOException {
Phanendra Manda972ee9e2015-08-21 19:08:20 +053080 tunnelProvider.tunnelProviderRegistry = registry;
81 tunnelProvider.pcepClientController = controller;
82 tunnelProvider.controller = ctl;
Jonathan Hart51539b82015-10-29 09:53:04 -070083 tunnelProvider.pcepTunnelApiMapper = pcepTunnelAPIMapper;
chengfan2fff70f2015-08-24 18:20:19 -050084 tunnelProvider.cfgService = new ComponentConfigAdapter();
85 tunnelProvider.tunnelService = tunnelService;
Phanendra Manda972ee9e2015-08-21 19:08:20 +053086 tunnelProvider.activate();
Priyanka Bd2b28882016-04-04 16:57:04 +053087 }
Phanendra Manda972ee9e2015-08-21 19:08:20 +053088
Priyanka Bd2b28882016-04-04 16:57:04 +053089 /**
90 * Send update message to PCC.
91 */
92 @Test
93 public void testCasePcepUpdateTunnel() {
Phanendra Manda972ee9e2015-08-21 19:08:20 +053094 Tunnel tunnel;
95 Path path;
96 ProviderId pid = new ProviderId("pcep", PROVIDER_ID);
Avantika-Huawei56c11842016-04-28 00:56:56 +053097 List<Link> links = new ArrayList<>();
Phanendra Manda972ee9e2015-08-21 19:08:20 +053098 IpAddress srcIp = IpAddress.valueOf(0xD010101);
99 IpElementId srcElementId = IpElementId.ipElement(srcIp);
100
101 IpAddress dstIp = IpAddress.valueOf(0xD010102);
102 IpElementId dstElementId = IpElementId.ipElement(dstIp);
103
104 IpTunnelEndPoint ipTunnelEndPointSrc;
105 ipTunnelEndPointSrc = IpTunnelEndPoint.ipTunnelPoint(srcIp);
106
107 IpTunnelEndPoint ipTunnelEndPointDst;
108 ipTunnelEndPointDst = IpTunnelEndPoint.ipTunnelPoint(dstIp);
109
110 ConnectPoint src = new ConnectPoint(srcElementId, PortNumber.portNumber(10023));
111
Priyanka B413fbe82016-05-26 11:44:45 +0530112 ConnectPoint dst = new ConnectPoint(dstElementId, PortNumber.portNumber(10024));
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530113
Ray Milkey2693bda2016-01-22 16:08:14 -0800114 Link link = DefaultLink.builder().providerId(pid).src(src).dst(dst)
115 .type(Link.Type.DIRECT).build();
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530116 links.add(link);
117
Ray Milkeya7cf8c82018-02-08 15:07:06 -0800118 path = new DefaultPath(pid, links, ScalarWeight.toWeight(20), EMPTY);
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530119
Avantika-Huawei56c11842016-04-28 00:56:56 +0530120 Annotations annotations = DefaultAnnotations.builder()
Avantika-Huaweifc10dca2016-06-10 16:13:55 +0530121 .set(PLSP_ID, "1")
122 .set(LOCAL_LSP_ID, "1")
Avantika-Huawei56c11842016-04-28 00:56:56 +0530123 .set(LSP_SIG_TYPE, WITH_SIGNALLING.name())
124 .build();
125
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530126 tunnel = new DefaultTunnel(pid, ipTunnelEndPointSrc, ipTunnelEndPointDst, Tunnel.Type.MPLS,
Yi Tsengfa394de2017-02-01 11:26:40 -0800127 new GroupId(0), TunnelId.valueOf("1"), TunnelName.tunnelName("T123"),
Avantika-Huawei56c11842016-04-28 00:56:56 +0530128 path, annotations);
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530129
130 // for updating tunnel tunnel should exist in db
131 PcepTunnelData pcepTunnelData = new PcepTunnelData(tunnel, path, RequestType.UPDATE);
132 pcepTunnelData.setPlspId(1);
Avantika-Huawei56c11842016-04-28 00:56:56 +0530133 StatefulIPv4LspIdentifiersTlv tlv = new StatefulIPv4LspIdentifiersTlv(0, (short) 1, (short) 2, 3, 4);
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530134 pcepTunnelData.setStatefulIpv4IndentifierTlv(tlv);
Jonathan Hart51539b82015-10-29 09:53:04 -0700135 tunnelProvider.pcepTunnelApiMapper.addToTunnelIdMap(pcepTunnelData);
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530136
Jonathan Hart51539b82015-10-29 09:53:04 -0700137 tunnelProvider.pcepTunnelApiMapper.handleCreateTunnelRequestQueue(1, pcepTunnelData);
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530138
Priyanka B413fbe82016-05-26 11:44:45 +0530139 PccId pccId = PccId.pccId(IpAddress.valueOf(0xD010101));
140 PcepClientAdapter pc = new PcepClientAdapter();
141 pc.init(pccId, PcepVersion.PCEP_1);
142 controller.getClient(pccId).setLspAndDelegationInfo(new LspKey(1, (short) 1), true);
143 controller.getClient(pccId).setCapability(new ClientCapability(true, true, true, true, true));
144
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530145 tunnelProvider.updateTunnel(tunnel, path);
Priyanka Bd2b28882016-04-04 16:57:04 +0530146 assertThat(tunnelProvider.pcepTunnelApiMapper, not(nullValue()));
147 }
148
149 /**
150 * Doesn't send update message because PCC doesn't supports PCE stateful capability.
151 */
152 @Test
153 public void testCasePcepUpdateTunnel2() {
154 Tunnel tunnel;
155 Path path;
156 ProviderId pid = new ProviderId("pcep", PROVIDER_ID);
Avantika-Huawei56c11842016-04-28 00:56:56 +0530157 List<Link> links = new ArrayList<>();
Priyanka B413fbe82016-05-26 11:44:45 +0530158 IpAddress srcIp = IpAddress.valueOf(0xD010101);
Priyanka Bd2b28882016-04-04 16:57:04 +0530159 IpElementId srcElementId = IpElementId.ipElement(srcIp);
160
161 IpAddress dstIp = IpAddress.valueOf(0xD010102);
162 IpElementId dstElementId = IpElementId.ipElement(dstIp);
163
164 IpTunnelEndPoint ipTunnelEndPointSrc;
165 ipTunnelEndPointSrc = IpTunnelEndPoint.ipTunnelPoint(srcIp);
166
167 IpTunnelEndPoint ipTunnelEndPointDst;
168 ipTunnelEndPointDst = IpTunnelEndPoint.ipTunnelPoint(dstIp);
169
170 ConnectPoint src = new ConnectPoint(srcElementId, PortNumber.portNumber(10023));
171
Priyanka B413fbe82016-05-26 11:44:45 +0530172 ConnectPoint dst = new ConnectPoint(dstElementId, PortNumber.portNumber(10024));
Priyanka Bd2b28882016-04-04 16:57:04 +0530173
174 Link link = DefaultLink.builder().providerId(pid).src(src).dst(dst)
175 .type(Link.Type.DIRECT).build();
176 links.add(link);
177
Ray Milkeya7cf8c82018-02-08 15:07:06 -0800178 path = new DefaultPath(pid, links, ScalarWeight.toWeight(20), EMPTY);
Priyanka Bd2b28882016-04-04 16:57:04 +0530179
Avantika-Huawei56c11842016-04-28 00:56:56 +0530180 Annotations annotations = DefaultAnnotations.builder()
181 .set(LSP_SIG_TYPE, WITH_SIGNALLING.name())
Avantika-Huaweifc10dca2016-06-10 16:13:55 +0530182 .set(PLSP_ID, "1")
183 .set(LOCAL_LSP_ID, "1")
Avantika-Huawei56c11842016-04-28 00:56:56 +0530184 .build();
185
Priyanka Bd2b28882016-04-04 16:57:04 +0530186 tunnel = new DefaultTunnel(pid, ipTunnelEndPointSrc, ipTunnelEndPointDst, Tunnel.Type.MPLS,
Yi Tsengfa394de2017-02-01 11:26:40 -0800187 new GroupId(0), TunnelId.valueOf("1"), TunnelName.tunnelName("T123"),
Avantika-Huawei56c11842016-04-28 00:56:56 +0530188 path, annotations);
Priyanka Bd2b28882016-04-04 16:57:04 +0530189
190 // for updating tunnel tunnel should exist in db
191 PcepTunnelData pcepTunnelData = new PcepTunnelData(tunnel, path, RequestType.UPDATE);
192 pcepTunnelData.setPlspId(1);
Avantika-Huawei56c11842016-04-28 00:56:56 +0530193 StatefulIPv4LspIdentifiersTlv tlv = new StatefulIPv4LspIdentifiersTlv(0, (short) 1, (short) 2, 3, 4);
Priyanka Bd2b28882016-04-04 16:57:04 +0530194 pcepTunnelData.setStatefulIpv4IndentifierTlv(tlv);
195 tunnelProvider.pcepTunnelApiMapper.addToTunnelIdMap(pcepTunnelData);
196
197 tunnelProvider.pcepTunnelApiMapper.handleCreateTunnelRequestQueue(1, pcepTunnelData);
198
Priyanka B413fbe82016-05-26 11:44:45 +0530199 PccId pccId = PccId.pccId(IpAddress.valueOf(0xD010101));
200 PcepClientAdapter pc = new PcepClientAdapter();
201 pc.init(pccId, PcepVersion.PCEP_1);
202 controller.getClient(pccId).setLspAndDelegationInfo(new LspKey(1, (short) 1), true);
203 controller.getClient(pccId).setCapability(new ClientCapability(true, true, true, true, true));
204
Priyanka Bd2b28882016-04-04 16:57:04 +0530205 tunnelProvider.updateTunnel(tunnel, path);
206 assertThat(tunnelProvider.pcepTunnelApiMapper.checkFromTunnelRequestQueue(1), is(false));
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530207 }
208
Avantika-Huawei56c11842016-04-28 00:56:56 +0530209 /**
210 * Sends update message to PCC for SR based tunnel.
211 */
212 @Test
213 public void testCasePcepUpdateSrTunnel() {
214 Tunnel tunnel;
215 Path path;
216 ProviderId pid = new ProviderId("pcep", PROVIDER_ID);
217 List<Link> links = new ArrayList<>();
218 IpAddress srcIp = IpAddress.valueOf(0xD010101);
219 IpElementId srcElementId = IpElementId.ipElement(srcIp);
220
221 IpAddress dstIp = IpAddress.valueOf(0xD010102);
222 IpElementId dstElementId = IpElementId.ipElement(dstIp);
223
224 IpTunnelEndPoint ipTunnelEndPointSrc;
225 ipTunnelEndPointSrc = IpTunnelEndPoint.ipTunnelPoint(srcIp);
226
227 IpTunnelEndPoint ipTunnelEndPointDst;
228 ipTunnelEndPointDst = IpTunnelEndPoint.ipTunnelPoint(dstIp);
229
230 ConnectPoint src = new ConnectPoint(srcElementId, PortNumber.portNumber(10023));
231
Priyanka B413fbe82016-05-26 11:44:45 +0530232 ConnectPoint dst = new ConnectPoint(dstElementId, PortNumber.portNumber(10024));
Avantika-Huawei56c11842016-04-28 00:56:56 +0530233
234 Link link = DefaultLink.builder().providerId(pid).src(src).dst(dst)
235 .type(Link.Type.DIRECT).build();
236 links.add(link);
237
Ray Milkeya7cf8c82018-02-08 15:07:06 -0800238 path = new DefaultPath(pid, links, ScalarWeight.toWeight(20), EMPTY);
Avantika-Huawei56c11842016-04-28 00:56:56 +0530239
240 Annotations annotations = DefaultAnnotations.builder()
241 .set(LSP_SIG_TYPE, SR_WITHOUT_SIGNALLING.name())
Avantika-Huaweifc10dca2016-06-10 16:13:55 +0530242 .set(PLSP_ID, "1")
243 .set(LOCAL_LSP_ID, "1")
Avantika-Huawei56c11842016-04-28 00:56:56 +0530244 .build();
245
246 tunnel = new DefaultTunnel(pid, ipTunnelEndPointSrc, ipTunnelEndPointDst, Tunnel.Type.MPLS,
Yi Tsengfa394de2017-02-01 11:26:40 -0800247 new GroupId(0), TunnelId.valueOf("1"), TunnelName.tunnelName("T123"),
Avantika-Huawei56c11842016-04-28 00:56:56 +0530248 path, annotations);
249
250 // for updating tunnel tunnel should exist in db
251 PcepTunnelData pcepTunnelData = new PcepTunnelData(tunnel, path, RequestType.UPDATE);
252 pcepTunnelData.setPlspId(1);
253 StatefulIPv4LspIdentifiersTlv tlv = new StatefulIPv4LspIdentifiersTlv(0, (short) 1, (short) 2, 3, 4);
254 pcepTunnelData.setStatefulIpv4IndentifierTlv(tlv);
255 tunnelProvider.pcepTunnelApiMapper.addToTunnelIdMap(pcepTunnelData);
256
257 tunnelProvider.pcepTunnelApiMapper.handleCreateTunnelRequestQueue(1, pcepTunnelData);
258
Priyanka B413fbe82016-05-26 11:44:45 +0530259 PccId pccId = PccId.pccId(IpAddress.valueOf(0xD010101));
260 PcepClientAdapter pc = new PcepClientAdapter();
261 pc.init(pccId, PcepVersion.PCEP_1);
262 controller.getClient(pccId).setLspAndDelegationInfo(new LspKey(1, (short) 1), true);
263 controller.getClient(pccId).setCapability(new ClientCapability(true, true, true, true, true));
264
Avantika-Huawei56c11842016-04-28 00:56:56 +0530265 tunnelProvider.updateTunnel(tunnel, path);
266 assertThat(tunnelProvider.pcepTunnelApiMapper, not(nullValue()));
267 }
268
269 /**
270 * Sends update message to PCC for tunnel without signalling and without SR.
271 */
272 @Test
273 public void testCasePcepUpdateTunnelWithoutSigSr() {
274 Tunnel tunnel;
275 Path path;
276 ProviderId pid = new ProviderId("pcep", PROVIDER_ID);
277 List<Link> links = new ArrayList<>();
278 IpAddress srcIp = IpAddress.valueOf(0xD010101);
279 IpElementId srcElementId = IpElementId.ipElement(srcIp);
280
281 IpAddress dstIp = IpAddress.valueOf(0xD010102);
282 IpElementId dstElementId = IpElementId.ipElement(dstIp);
283
284 IpTunnelEndPoint ipTunnelEndPointSrc;
285 ipTunnelEndPointSrc = IpTunnelEndPoint.ipTunnelPoint(srcIp);
286
287 IpTunnelEndPoint ipTunnelEndPointDst;
288 ipTunnelEndPointDst = IpTunnelEndPoint.ipTunnelPoint(dstIp);
289
290 ConnectPoint src = new ConnectPoint(srcElementId, PortNumber.portNumber(10023));
291
Priyanka B413fbe82016-05-26 11:44:45 +0530292 ConnectPoint dst = new ConnectPoint(dstElementId, PortNumber.portNumber(10024));
Avantika-Huawei56c11842016-04-28 00:56:56 +0530293
294 Link link = DefaultLink.builder().providerId(pid).src(src).dst(dst)
295 .type(Link.Type.DIRECT).build();
296 links.add(link);
297
Ray Milkeya7cf8c82018-02-08 15:07:06 -0800298 path = new DefaultPath(pid, links, ScalarWeight.toWeight(20), EMPTY);
Avantika-Huawei56c11842016-04-28 00:56:56 +0530299
300 Annotations annotations = DefaultAnnotations.builder()
301 .set(LSP_SIG_TYPE, WITHOUT_SIGNALLING_AND_WITHOUT_SR.name())
Avantika-Huaweifc10dca2016-06-10 16:13:55 +0530302 .set(PLSP_ID, "1")
303 .set(LOCAL_LSP_ID, "1")
Avantika-Huawei56c11842016-04-28 00:56:56 +0530304 .build();
305
306 tunnel = new DefaultTunnel(pid, ipTunnelEndPointSrc, ipTunnelEndPointDst, Tunnel.Type.MPLS,
Yi Tsengfa394de2017-02-01 11:26:40 -0800307 new GroupId(0), TunnelId.valueOf("1"), TunnelName.tunnelName("T123"),
Avantika-Huawei56c11842016-04-28 00:56:56 +0530308 path, annotations);
309
310 // for updating tunnel tunnel should exist in db
311 PcepTunnelData pcepTunnelData = new PcepTunnelData(tunnel, path, RequestType.UPDATE);
312 pcepTunnelData.setPlspId(1);
313 StatefulIPv4LspIdentifiersTlv tlv = new StatefulIPv4LspIdentifiersTlv(0, (short) 1, (short) 2, 3, 4);
314 pcepTunnelData.setStatefulIpv4IndentifierTlv(tlv);
315 tunnelProvider.pcepTunnelApiMapper.addToTunnelIdMap(pcepTunnelData);
316
317 tunnelProvider.pcepTunnelApiMapper.handleCreateTunnelRequestQueue(1, pcepTunnelData);
318
Priyanka B413fbe82016-05-26 11:44:45 +0530319 PccId pccId = PccId.pccId(IpAddress.valueOf(0xD010101));
320 PcepClientAdapter pc = new PcepClientAdapter();
321 pc.init(pccId, PcepVersion.PCEP_1);
322 controller.getClient(pccId).setLspAndDelegationInfo(new LspKey(1, (short) 1), true);
323 controller.getClient(pccId).setCapability(new ClientCapability(true, true, true, true, true));
324
Avantika-Huawei56c11842016-04-28 00:56:56 +0530325 tunnelProvider.updateTunnel(tunnel, path);
326 assertThat(tunnelProvider.pcepTunnelApiMapper, not(nullValue()));
327 }
328
Phanendra Manda972ee9e2015-08-21 19:08:20 +0530329 @After
330 public void tearDown() throws IOException {
331 tunnelProvider.deactivate();
332 tunnelProvider.controller = null;
333 tunnelProvider.pcepClientController = null;
334 tunnelProvider.tunnelProviderRegistry = null;
335 }
336}