blob: 55574297399c95420062072dd1f6fae3401fcf39 [file] [log] [blame]
Kalyankumar Asangi6dd598c2016-04-27 18:56:21 +05301/*
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 */
16
17package org.onosproject.provider.isis.device.impl;
18
19import org.apache.felix.scr.annotations.Activate;
20import org.apache.felix.scr.annotations.Component;
21import org.apache.felix.scr.annotations.Deactivate;
22import org.apache.felix.scr.annotations.Reference;
23import org.apache.felix.scr.annotations.ReferenceCardinality;
24import org.onosproject.isis.controller.IsisController;
25import org.onosproject.net.provider.AbstractProvider;
26import org.onosproject.net.provider.ProviderId;
27import org.slf4j.Logger;
28
29import static org.slf4j.LoggerFactory.getLogger;
30
31/**
32 * Provider which advertises device descriptions to the core.
33 */
34@Component(immediate = true)
35public class IsisTopologyProvider extends AbstractProvider {
36
37 private static final Logger log = getLogger(IsisTopologyProvider.class);
38 final InternalDeviceProvider listener = new InternalDeviceProvider();
39 @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
40 private IsisController isisController;
41
42
43 /**
44 * Creates an ISIS device provider.
45 */
46 public IsisTopologyProvider() {
47 super(new ProviderId("isis", "org.onosproject.provider.isis"));
48 }
49
50 @Activate
51 public void activate() {
52 log.debug("Activate...!!!");
53 }
54
55 @Deactivate
56 public void deactivate() {
57 log.debug("Deactivate...!!!");
58 }
59
60 /**
61 * Internal device provider implementation.
62 */
63 private class InternalDeviceProvider {
64
65 }
66}