Jonathan Hart
Committed by Gerrit Code Review

Deprecated address bindings interfaces in Host subsystem

Change-Id: I69b777ec16e3fb8344ddba757c764ccb1a44ac92
...@@ -38,7 +38,9 @@ public interface HostAdminService extends HostService { ...@@ -38,7 +38,9 @@ public interface HostAdminService extends HostService {
38 * 38 *
39 * @param addresses address object containing addresses to add and the port 39 * @param addresses address object containing addresses to add and the port
40 * to add them to 40 * to add them to
41 + * @deprecated in Drake release: address info now stored in InterfaceService
41 */ 42 */
43 + @Deprecated
42 void bindAddressesToPort(PortAddresses addresses); 44 void bindAddressesToPort(PortAddresses addresses);
43 45
44 /** 46 /**
...@@ -47,14 +49,18 @@ public interface HostAdminService extends HostService { ...@@ -47,14 +49,18 @@ public interface HostAdminService extends HostService {
47 * 49 *
48 * @param portAddresses set of addresses to remove and port to remove them 50 * @param portAddresses set of addresses to remove and port to remove them
49 * from 51 * from
52 + * @deprecated in Drake release: address info now stored in InterfaceService
50 */ 53 */
54 + @Deprecated
51 void unbindAddressesFromPort(PortAddresses portAddresses); 55 void unbindAddressesFromPort(PortAddresses portAddresses);
52 56
53 /** 57 /**
54 * Removes all address information for the given connection point. 58 * Removes all address information for the given connection point.
55 * 59 *
56 * @param connectPoint the connection point to remove address information 60 * @param connectPoint the connection point to remove address information
61 + * @deprecated in Drake release: address info now stored in InterfaceService
57 */ 62 */
63 + @Deprecated
58 void clearAddresses(ConnectPoint connectPoint); 64 void clearAddresses(ConnectPoint connectPoint);
59 65
60 } 66 }
......
...@@ -15,17 +15,17 @@ ...@@ -15,17 +15,17 @@
15 */ 15 */
16 package org.onosproject.net.host; 16 package org.onosproject.net.host;
17 17
18 -import java.util.Set; 18 +import org.onlab.packet.IpAddress;
19 - 19 +import org.onlab.packet.MacAddress;
20 +import org.onlab.packet.VlanId;
20 import org.onosproject.net.ConnectPoint; 21 import org.onosproject.net.ConnectPoint;
21 import org.onosproject.net.DeviceId; 22 import org.onosproject.net.DeviceId;
22 import org.onosproject.net.Host; 23 import org.onosproject.net.Host;
23 import org.onosproject.net.HostId; 24 import org.onosproject.net.HostId;
24 import org.onosproject.net.provider.ProviderId; 25 import org.onosproject.net.provider.ProviderId;
25 import org.onosproject.store.Store; 26 import org.onosproject.store.Store;
26 -import org.onlab.packet.IpAddress; 27 +
27 -import org.onlab.packet.MacAddress; 28 +import java.util.Set;
28 -import org.onlab.packet.VlanId;
29 29
30 /** 30 /**
31 * Manages inventory of end-station hosts; not intended for direct use. 31 * Manages inventory of end-station hosts; not intended for direct use.
...@@ -120,7 +120,9 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> { ...@@ -120,7 +120,9 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> {
120 * information is added to any previously held information for the port. 120 * information is added to any previously held information for the port.
121 * 121 *
122 * @param addresses the port and address information 122 * @param addresses the port and address information
123 + * @deprecated in Drake release: address info now stored in InterfaceService
123 */ 124 */
125 + @Deprecated
124 void updateAddressBindings(PortAddresses addresses); 126 void updateAddressBindings(PortAddresses addresses);
125 127
126 /** 128 /**
...@@ -128,7 +130,9 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> { ...@@ -128,7 +130,9 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> {
128 * a port. 130 * a port.
129 * 131 *
130 * @param addresses the port and address information 132 * @param addresses the port and address information
133 + * @deprecated in Drake release: address info now stored in InterfaceService
131 */ 134 */
135 + @Deprecated
132 void removeAddressBindings(PortAddresses addresses); 136 void removeAddressBindings(PortAddresses addresses);
133 137
134 /** 138 /**
...@@ -136,14 +140,18 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> { ...@@ -136,14 +140,18 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> {
136 * point. 140 * point.
137 * 141 *
138 * @param connectPoint the connection point 142 * @param connectPoint the connection point
143 + * @deprecated in Drake release: address info now stored in InterfaceService
139 */ 144 */
145 + @Deprecated
140 void clearAddressBindings(ConnectPoint connectPoint); 146 void clearAddressBindings(ConnectPoint connectPoint);
141 147
142 /** 148 /**
143 * Returns the address bindings stored for all connection points. 149 * Returns the address bindings stored for all connection points.
144 * 150 *
145 * @return the set of address bindings 151 * @return the set of address bindings
152 + * @deprecated in Drake release: address info now stored in InterfaceService
146 */ 153 */
154 + @Deprecated
147 Set<PortAddresses> getAddressBindings(); 155 Set<PortAddresses> getAddressBindings();
148 156
149 /** 157 /**
...@@ -152,6 +160,8 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> { ...@@ -152,6 +160,8 @@ public interface HostStore extends Store<HostEvent, HostStoreDelegate> {
152 * @param connectPoint the connection point to return address information 160 * @param connectPoint the connection point to return address information
153 * for 161 * for
154 * @return address information for the connection point 162 * @return address information for the connection point
163 + * @deprecated in Drake release: address info now stored in InterfaceService
155 */ 164 */
165 + @Deprecated
156 Set<PortAddresses> getAddressBindingsForPort(ConnectPoint connectPoint); 166 Set<PortAddresses> getAddressBindingsForPort(ConnectPoint connectPoint);
157 } 167 }
......