blob: 985a0cb54b6b0637a34ba9b9393bc51a931f4ab5 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 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 */
tom0eb04ca2014-08-25 14:34:51 -070016package org.onlab.onos.net.topology;
17
tomcfde0622014-09-09 11:02:42 -070018import org.onlab.onos.event.Event;
tomc1a38d32014-08-25 23:01:32 -070019import org.onlab.onos.net.provider.ProviderService;
tom0eb04ca2014-08-25 14:34:51 -070020
tomcfde0622014-09-09 11:02:42 -070021import java.util.List;
22
tom0eb04ca2014-08-25 14:34:51 -070023/**
24 * Means for injecting topology information into the core.
25 */
tomd7356722014-08-26 01:07:39 -070026public interface TopologyProviderService extends ProviderService<TopologyProvider> {
tom0eb04ca2014-08-25 14:34:51 -070027
tom0eb04ca2014-08-25 14:34:51 -070028 /**
29 * Signals the core that some aspect of the topology has changed.
30 *
tom97937552014-09-11 10:48:42 -070031 * @param graphDescription information about the network graph
32 * @param reasons events that triggered topology change
tom0eb04ca2014-08-25 14:34:51 -070033 */
tom97937552014-09-11 10:48:42 -070034 void topologyChanged(GraphDescription graphDescription,
tomcfde0622014-09-09 11:02:42 -070035 List<Event> reasons);
tom0eb04ca2014-08-25 14:34:51 -070036
37}