blob: f8682486b50ae5087d2250ce716fbb033d72b0ab [file] [log] [blame]
Thomas Vachuska781d18b2014-10-27 10:31:25 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuska781d18b2014-10-27 10:31:25 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * 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
Thomas Vachuska781d18b2014-10-27 10:31:25 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * 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.
Thomas Vachuska781d18b2014-10-27 10:31:25 -070015 */
Jonathan Hart365335e2015-12-10 11:09:53 -080016
Jonathan Hart9a426f82015-09-03 15:43:13 +020017package org.onosproject.routing;
Jonathan Hart0b04bed2014-10-16 16:39:19 -070018
Jonathan Hart0b04bed2014-10-16 16:39:19 -070019/**
Jonathan Hart365335e2015-12-10 11:09:53 -080020 * Administrative APIs for managing intent synchronization.
Jonathan Hart0b04bed2014-10-16 16:39:19 -070021 */
Jonathan Hart365335e2015-12-10 11:09:53 -080022public interface IntentSynchronizationAdminService {
Jonathan Hartec2df012014-10-23 16:40:24 -070023
24 /**
Jonathan Hartde15e1c2016-02-03 10:51:50 -080025 * Changes whether this instance is the primary or not based on the
Jonathan Hartec2df012014-10-23 16:40:24 -070026 * boolean parameter.
27 *
28 * @param isPrimary true if the instance is primary, false if it is not
29 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070030 void modifyPrimary(boolean isPrimary);
Pingping Line28ae4c2015-03-13 11:37:03 -070031
Jonathan Hart9a426f82015-09-03 15:43:13 +020032 /**
Jonathan Hart365335e2015-12-10 11:09:53 -080033 * Withdraws all intents.
Jonathan Hart9a426f82015-09-03 15:43:13 +020034 */
Jonathan Hart365335e2015-12-10 11:09:53 -080035 void removeIntents();
Jonathan Hart0b04bed2014-10-16 16:39:19 -070036}