blob: d26d3060a2ee7ebe39a19aea2042bd4fdc2d45e5 [file] [log] [blame]
Thomas Vachuska781d18b2014-10-27 10:31:25 -07001/*
Ray Milkey34c95902015-04-15 09:47:53 -07002 * Copyright 2014-2015 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 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.sdnip;
Jonathan Hart0b04bed2014-10-16 16:39:19 -070017
Jonathan Hart0b04bed2014-10-16 16:39:19 -070018/**
19 * Service interface exported by SDN-IP.
20 */
21public interface SdnIpService {
Jonathan Hartec2df012014-10-23 16:40:24 -070022
23 /**
24 * Changes whether this SDN-IP instance is the primary or not based on the
25 * boolean parameter.
26 *
27 * @param isPrimary true if the instance is primary, false if it is not
28 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070029 void modifyPrimary(boolean isPrimary);
Pingping Line28ae4c2015-03-13 11:37:03 -070030
Jonathan Hart0b04bed2014-10-16 16:39:19 -070031}