Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 1 | /* |
Ray Milkey | 34c9590 | 2015-04-15 09:47:53 -0700 | [diff] [blame^] | 2 | * Copyright 2014-2015 Open Networking Laboratory |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 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 | */ |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 16 | package org.onosproject.net.host; |
tom | 89b63c5 | 2014-09-16 09:19:51 -0700 | [diff] [blame] | 17 | |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 18 | import org.onosproject.net.ConnectPoint; |
| 19 | import org.onosproject.net.HostId; |
tom | 89b63c5 | 2014-09-16 09:19:51 -0700 | [diff] [blame] | 20 | |
| 21 | /** |
| 22 | * Service for administering the inventory of end-station hosts. |
| 23 | */ |
Thomas Vachuska | c40d463 | 2015-04-09 16:55:03 -0700 | [diff] [blame] | 24 | public interface HostAdminService extends HostService { |
tom | 89b63c5 | 2014-09-16 09:19:51 -0700 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * Removes the end-station host with the specified identifier. |
| 28 | * |
| 29 | * @param hostId host identifier |
| 30 | */ |
| 31 | void removeHost(HostId hostId); |
| 32 | |
Jonathan Hart | ac60c08 | 2014-09-23 08:55:17 -0700 | [diff] [blame] | 33 | /** |
Jonathan Hart | 09585c6 | 2014-09-23 16:58:04 -0700 | [diff] [blame] | 34 | * Binds IP and MAC addresses to the given connection point. |
Thomas Vachuska | 4b42077 | 2014-10-30 16:46:17 -0700 | [diff] [blame] | 35 | * <p> |
Jonathan Hart | 09585c6 | 2014-09-23 16:58:04 -0700 | [diff] [blame] | 36 | * The addresses are added to the set of addresses already bound to the |
Jonathan Hart | a887ba8 | 2014-11-03 15:20:52 -0800 | [diff] [blame] | 37 | * connection point. |
Jonathan Hart | ac60c08 | 2014-09-23 08:55:17 -0700 | [diff] [blame] | 38 | * |
Jonathan Hart | 09585c6 | 2014-09-23 16:58:04 -0700 | [diff] [blame] | 39 | * @param addresses address object containing addresses to add and the port |
| 40 | * to add them to |
Jonathan Hart | ac60c08 | 2014-09-23 08:55:17 -0700 | [diff] [blame] | 41 | */ |
Jonathan Hart | 09585c6 | 2014-09-23 16:58:04 -0700 | [diff] [blame] | 42 | void bindAddressesToPort(PortAddresses addresses); |
| 43 | |
| 44 | /** |
| 45 | * Removes the addresses contained in the given PortAddresses object from |
| 46 | * the set of addresses bound to the port. |
| 47 | * |
| 48 | * @param portAddresses set of addresses to remove and port to remove them |
| 49 | * from |
| 50 | */ |
| 51 | void unbindAddressesFromPort(PortAddresses portAddresses); |
Jonathan Hart | ac60c08 | 2014-09-23 08:55:17 -0700 | [diff] [blame] | 52 | |
| 53 | /** |
| 54 | * Removes all address information for the given connection point. |
| 55 | * |
| 56 | * @param connectPoint the connection point to remove address information |
| 57 | */ |
Jonathan Hart | 09585c6 | 2014-09-23 16:58:04 -0700 | [diff] [blame] | 58 | void clearAddresses(ConnectPoint connectPoint); |
Jonathan Hart | ac60c08 | 2014-09-23 08:55:17 -0700 | [diff] [blame] | 59 | |
tom | 89b63c5 | 2014-09-16 09:19:51 -0700 | [diff] [blame] | 60 | } |