Jonathan Hart

Renamed routing packages to foo & foo.impl pattern.

Plus added some package-info.java files.

Change-Id: I0b68a7f4cea7a5f089b37b1a1c016d1c3b7a8702
Showing 39 changed files with 183 additions and 103 deletions
...@@ -42,11 +42,11 @@ import org.onosproject.net.group.GroupDescription; ...@@ -42,11 +42,11 @@ import org.onosproject.net.group.GroupDescription;
42 import org.onosproject.net.group.GroupKey; 42 import org.onosproject.net.group.GroupKey;
43 import org.onosproject.net.group.GroupService; 43 import org.onosproject.net.group.GroupService;
44 import org.onosproject.net.packet.PacketService; 44 import org.onosproject.net.packet.PacketService;
45 -import org.onosproject.routingapi.FibListener; 45 +import org.onosproject.routing.FibListener;
46 -import org.onosproject.routingapi.FibUpdate; 46 +import org.onosproject.routing.FibUpdate;
47 -import org.onosproject.routingapi.RoutingService; 47 +import org.onosproject.routing.RoutingService;
48 -import org.onosproject.routingapi.config.Interface; 48 +import org.onosproject.routing.config.Interface;
49 -import org.onosproject.routingapi.config.RoutingConfigurationService; 49 +import org.onosproject.routing.config.RoutingConfigurationService;
50 import org.slf4j.Logger; 50 import org.slf4j.Logger;
51 import org.slf4j.LoggerFactory; 51 import org.slf4j.LoggerFactory;
52 52
......
...@@ -31,10 +31,10 @@ import org.onosproject.net.packet.PacketContext; ...@@ -31,10 +31,10 @@ import org.onosproject.net.packet.PacketContext;
31 import org.onosproject.net.packet.PacketPriority; 31 import org.onosproject.net.packet.PacketPriority;
32 import org.onosproject.net.packet.PacketProcessor; 32 import org.onosproject.net.packet.PacketProcessor;
33 import org.onosproject.net.packet.PacketService; 33 import org.onosproject.net.packet.PacketService;
34 -import org.onosproject.routingapi.config.BgpPeer; 34 +import org.onosproject.routing.config.BgpPeer;
35 -import org.onosproject.routingapi.config.BgpSpeaker; 35 +import org.onosproject.routing.config.BgpSpeaker;
36 -import org.onosproject.routingapi.config.InterfaceAddress; 36 +import org.onosproject.routing.config.InterfaceAddress;
37 -import org.onosproject.routingapi.config.RoutingConfigurationService; 37 +import org.onosproject.routing.config.RoutingConfigurationService;
38 import org.slf4j.Logger; 38 import org.slf4j.Logger;
39 import org.slf4j.LoggerFactory; 39 import org.slf4j.LoggerFactory;
40 40
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi; 16 +package org.onosproject.routing;
17 17
18 /** 18 /**
19 * Provides a way of interacting with the BGP protocol component. 19 * Provides a way of interacting with the BGP protocol component.
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi; 16 +package org.onosproject.routing;
17 17
18 import com.google.common.base.MoreObjects; 18 import com.google.common.base.MoreObjects;
19 import org.onlab.packet.IpAddress; 19 import org.onlab.packet.IpAddress;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi; 16 +package org.onosproject.routing;
17 17
18 import java.util.Collection; 18 import java.util.Collection;
19 19
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi; 16 +package org.onosproject.routing;
17 17
18 import com.google.common.base.MoreObjects; 18 import com.google.common.base.MoreObjects;
19 19
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi; 16 +package org.onosproject.routing;
17 17
18 import com.google.common.base.MoreObjects; 18 import com.google.common.base.MoreObjects;
19 import org.onlab.packet.IpAddress; 19 import org.onlab.packet.IpAddress;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi; 16 +package org.onosproject.routing;
17 17
18 import java.util.Collection; 18 import java.util.Collection;
19 19
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi; 16 +package org.onosproject.routing;
17 17
18 import com.google.common.base.MoreObjects; 18 import com.google.common.base.MoreObjects;
19 19
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi; 16 +package org.onosproject.routing;
17 17
18 import java.util.Collection; 18 import java.util.Collection;
19 19
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi.config; 16 +package org.onosproject.routing.config;
17 17
18 import com.fasterxml.jackson.annotation.JsonProperty; 18 import com.fasterxml.jackson.annotation.JsonProperty;
19 import com.google.common.base.MoreObjects; 19 import com.google.common.base.MoreObjects;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi.config; 16 +package org.onosproject.routing.config;
17 17
18 import com.fasterxml.jackson.annotation.JsonCreator; 18 import com.fasterxml.jackson.annotation.JsonCreator;
19 import com.fasterxml.jackson.annotation.JsonProperty; 19 import com.fasterxml.jackson.annotation.JsonProperty;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi.config; 16 +package org.onosproject.routing.config;
17 17
18 import com.google.common.base.MoreObjects; 18 import com.google.common.base.MoreObjects;
19 import com.google.common.collect.Sets; 19 import com.google.common.collect.Sets;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi.config; 16 +package org.onosproject.routing.config;
17 17
18 import com.fasterxml.jackson.annotation.JsonProperty; 18 import com.fasterxml.jackson.annotation.JsonProperty;
19 import com.google.common.base.MoreObjects; 19 import com.google.common.base.MoreObjects;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi.config; 16 +package org.onosproject.routing.config;
17 17
18 import org.onlab.packet.IpAddress; 18 import org.onlab.packet.IpAddress;
19 import org.onosproject.net.ConnectPoint; 19 import org.onosproject.net.ConnectPoint;
......
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
15 */ 15 */
16 16
17 /** 17 /**
18 - * SDN-IP configuration services. 18 + * Routing configuration interfaces.
19 */ 19 */
20 -package org.onosproject.routingapi.config; 20 +package org.onosproject.routing.config;
......
1 +/*
2 + * Copyright 2015 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 + */
16 +
17 +/**
18 + * API for routing libraries.
19 + */
20 +package org.onosproject.routing;
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routingapi; 16 +package org.onosproject.routing;
17 17
18 import org.hamcrest.Matchers; 18 import org.hamcrest.Matchers;
19 import org.junit.Test; 19 import org.junit.Test;
......
...@@ -19,7 +19,7 @@ import com.google.common.base.MoreObjects; ...@@ -19,7 +19,7 @@ import com.google.common.base.MoreObjects;
19 import org.onlab.packet.Ip4Address; 19 import org.onlab.packet.Ip4Address;
20 import org.onlab.packet.IpAddress; 20 import org.onlab.packet.IpAddress;
21 import org.onlab.packet.IpPrefix; 21 import org.onlab.packet.IpPrefix;
22 -import org.onosproject.routingapi.RouteEntry; 22 +import org.onosproject.routing.RouteEntry;
23 23
24 import java.util.ArrayList; 24 import java.util.ArrayList;
25 import java.util.Objects; 25 import java.util.Objects;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 package org.onosproject.routing.bgp; 16 package org.onosproject.routing.bgp;
17 17
18 import org.onlab.packet.IpPrefix; 18 import org.onlab.packet.IpPrefix;
19 -import org.onosproject.routingapi.RouteUpdate; 19 +import org.onosproject.routing.RouteUpdate;
20 import org.slf4j.Logger; 20 import org.slf4j.Logger;
21 import org.slf4j.LoggerFactory; 21 import org.slf4j.LoggerFactory;
22 22
......
...@@ -35,8 +35,8 @@ import org.onlab.packet.Ip4Address; ...@@ -35,8 +35,8 @@ import org.onlab.packet.Ip4Address;
35 import org.onlab.packet.Ip4Prefix; 35 import org.onlab.packet.Ip4Prefix;
36 import org.onlab.packet.Ip6Prefix; 36 import org.onlab.packet.Ip6Prefix;
37 import org.onlab.packet.IpPrefix; 37 import org.onlab.packet.IpPrefix;
38 -import org.onosproject.routingapi.BgpService; 38 +import org.onosproject.routing.BgpService;
39 -import org.onosproject.routingapi.RouteListener; 39 +import org.onosproject.routing.RouteListener;
40 import org.slf4j.Logger; 40 import org.slf4j.Logger;
41 import org.slf4j.LoggerFactory; 41 import org.slf4j.LoggerFactory;
42 42
......
...@@ -22,10 +22,10 @@ import com.fasterxml.jackson.databind.node.ObjectNode; ...@@ -22,10 +22,10 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
22 import org.apache.karaf.shell.commands.Command; 22 import org.apache.karaf.shell.commands.Command;
23 import org.apache.karaf.shell.commands.Option; 23 import org.apache.karaf.shell.commands.Option;
24 import org.onosproject.cli.AbstractShellCommand; 24 import org.onosproject.cli.AbstractShellCommand;
25 -import org.onosproject.routing.bgp.BgpConstants.Update;
26 import org.onosproject.routing.bgp.BgpInfoService; 25 import org.onosproject.routing.bgp.BgpInfoService;
27 import org.onosproject.routing.bgp.BgpRouteEntry; 26 import org.onosproject.routing.bgp.BgpRouteEntry;
28 import org.onosproject.routing.bgp.BgpSession; 27 import org.onosproject.routing.bgp.BgpSession;
28 +import org.onosproject.routing.bgp.BgpConstants;
29 29
30 import java.util.ArrayList; 30 import java.util.ArrayList;
31 import java.util.Collection; 31 import java.util.Collection;
...@@ -150,7 +150,7 @@ public class BgpRoutesListCommand extends AbstractShellCommand { ...@@ -150,7 +150,7 @@ public class BgpRoutesListCommand extends AbstractShellCommand {
150 private void printRoute(BgpRouteEntry route) { 150 private void printRoute(BgpRouteEntry route) {
151 if (route != null) { 151 if (route != null) {
152 print(FORMAT_ROUTE_LINE1, route.prefix(), route.nextHop(), 152 print(FORMAT_ROUTE_LINE1, route.prefix(), route.nextHop(),
153 - Update.Origin.typeToString(route.getOrigin()), 153 + BgpConstants.Update.Origin.typeToString(route.getOrigin()),
154 route.getLocalPref(), route.getMultiExitDisc(), 154 route.getLocalPref(), route.getMultiExitDisc(),
155 route.getBgpSession().remoteInfo().bgpId()); 155 route.getBgpSession().remoteInfo().bgpId());
156 print(FORMAT_ROUTE_LINE2, asPath4Cli(route.getAsPath())); 156 print(FORMAT_ROUTE_LINE2, asPath4Cli(route.getAsPath()));
...@@ -176,23 +176,23 @@ public class BgpRoutesListCommand extends AbstractShellCommand { ...@@ -176,23 +176,23 @@ public class BgpRoutesListCommand extends AbstractShellCommand {
176 String prefix = null; 176 String prefix = null;
177 String suffix = null; 177 String suffix = null;
178 switch (pathSegment.getType()) { 178 switch (pathSegment.getType()) {
179 - case Update.AsPath.AS_SET: 179 + case BgpConstants.Update.AsPath.AS_SET:
180 prefix = "[AS-Set"; 180 prefix = "[AS-Set";
181 suffix = "]"; 181 suffix = "]";
182 break; 182 break;
183 - case Update.AsPath.AS_SEQUENCE: 183 + case BgpConstants.Update.AsPath.AS_SEQUENCE:
184 break; 184 break;
185 - case Update.AsPath.AS_CONFED_SEQUENCE: 185 + case BgpConstants.Update.AsPath.AS_CONFED_SEQUENCE:
186 prefix = "[AS-Confed-Seq"; 186 prefix = "[AS-Confed-Seq";
187 suffix = "]"; 187 suffix = "]";
188 break; 188 break;
189 - case Update.AsPath.AS_CONFED_SET: 189 + case BgpConstants.Update.AsPath.AS_CONFED_SET:
190 prefix = "[AS-Confed-Set"; 190 prefix = "[AS-Confed-Set";
191 suffix = "]"; 191 suffix = "]";
192 break; 192 break;
193 default: 193 default:
194 builder.append(String.format("(type = %s)", 194 builder.append(String.format("(type = %s)",
195 - Update.AsPath.typeToString(pathSegment.getType()))); 195 + BgpConstants.Update.AsPath.typeToString(pathSegment.getType())));
196 break; 196 break;
197 } 197 }
198 198
...@@ -247,7 +247,7 @@ public class BgpRoutesListCommand extends AbstractShellCommand { ...@@ -247,7 +247,7 @@ public class BgpRoutesListCommand extends AbstractShellCommand {
247 result.put("nextHop", route.nextHop().toString()); 247 result.put("nextHop", route.nextHop().toString());
248 result.put("bgpId", 248 result.put("bgpId",
249 route.getBgpSession().remoteInfo().bgpId().toString()); 249 route.getBgpSession().remoteInfo().bgpId().toString());
250 - result.put("origin", Update.Origin.typeToString(route.getOrigin())); 250 + result.put("origin", BgpConstants.Update.Origin.typeToString(route.getOrigin()));
251 result.set("asPath", json(mapper, route.getAsPath())); 251 result.set("asPath", json(mapper, route.getAsPath()));
252 result.put("localPref", route.getLocalPref()); 252 result.put("localPref", route.getLocalPref());
253 result.put("multiExitDisc", route.getMultiExitDisc()); 253 result.put("multiExitDisc", route.getMultiExitDisc());
...@@ -268,7 +268,7 @@ public class BgpRoutesListCommand extends AbstractShellCommand { ...@@ -268,7 +268,7 @@ public class BgpRoutesListCommand extends AbstractShellCommand {
268 for (BgpRouteEntry.PathSegment pathSegment : asPath.getPathSegments()) { 268 for (BgpRouteEntry.PathSegment pathSegment : asPath.getPathSegments()) {
269 ObjectNode pathSegmentJson = mapper.createObjectNode(); 269 ObjectNode pathSegmentJson = mapper.createObjectNode();
270 pathSegmentJson.put("type", 270 pathSegmentJson.put("type",
271 - Update.AsPath.typeToString(pathSegment.getType())); 271 + BgpConstants.Update.AsPath.typeToString(pathSegment.getType()));
272 ArrayNode segmentAsNumbersJson = mapper.createArrayNode(); 272 ArrayNode segmentAsNumbersJson = mapper.createArrayNode();
273 for (Long asNumber : pathSegment.getSegmentAsNumbers()) { 273 for (Long asNumber : pathSegment.getSegmentAsNumbers()) {
274 segmentAsNumbersJson.add(asNumber); 274 segmentAsNumbersJson.add(asNumber);
......
...@@ -22,8 +22,8 @@ import com.fasterxml.jackson.databind.node.ObjectNode; ...@@ -22,8 +22,8 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
22 import org.apache.karaf.shell.commands.Command; 22 import org.apache.karaf.shell.commands.Command;
23 import org.apache.karaf.shell.commands.Option; 23 import org.apache.karaf.shell.commands.Option;
24 import org.onosproject.cli.AbstractShellCommand; 24 import org.onosproject.cli.AbstractShellCommand;
25 -import org.onosproject.routingapi.RouteEntry; 25 +import org.onosproject.routing.RouteEntry;
26 -import org.onosproject.routingapi.RoutingService; 26 +import org.onosproject.routing.RoutingService;
27 27
28 import java.util.Collection; 28 import java.util.Collection;
29 29
......
1 +/*
2 + * Copyright 2015 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 + */
16 +
17 +/**
18 + * CLI handlers for routing commands.
19 + */
20 +package org.onosproject.routing.cli;
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routing.config; 16 +package org.onosproject.routing.config.impl;
17 17
18 import com.fasterxml.jackson.annotation.JsonProperty; 18 import com.fasterxml.jackson.annotation.JsonProperty;
19 -import org.onosproject.routingapi.config.BgpPeer; 19 +import org.onosproject.routing.config.BgpPeer;
20 -import org.onosproject.routingapi.config.BgpSpeaker; 20 +import org.onosproject.routing.config.BgpSpeaker;
21 21
22 import java.util.Collections; 22 import java.util.Collections;
23 import java.util.List; 23 import java.util.List;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routing.config; 16 +package org.onosproject.routing.config.impl;
17 17
18 import com.google.common.collect.Sets; 18 import com.google.common.collect.Sets;
19 import org.onlab.packet.IpAddress; 19 import org.onlab.packet.IpAddress;
...@@ -21,7 +21,7 @@ import org.onosproject.net.ConnectPoint; ...@@ -21,7 +21,7 @@ import org.onosproject.net.ConnectPoint;
21 import org.onosproject.net.host.HostService; 21 import org.onosproject.net.host.HostService;
22 import org.onosproject.net.host.InterfaceIpAddress; 22 import org.onosproject.net.host.InterfaceIpAddress;
23 import org.onosproject.net.host.PortAddresses; 23 import org.onosproject.net.host.PortAddresses;
24 -import org.onosproject.routingapi.config.Interface; 24 +import org.onosproject.routing.config.Interface;
25 25
26 import java.util.Set; 26 import java.util.Set;
27 27
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routing.config; 16 +package org.onosproject.routing.config.impl;
17 17
18 import com.fasterxml.jackson.databind.ObjectMapper; 18 import com.fasterxml.jackson.databind.ObjectMapper;
19 import org.apache.felix.scr.annotations.Activate; 19 import org.apache.felix.scr.annotations.Activate;
...@@ -24,10 +24,10 @@ import org.apache.felix.scr.annotations.Service; ...@@ -24,10 +24,10 @@ import org.apache.felix.scr.annotations.Service;
24 import org.onlab.packet.IpAddress; 24 import org.onlab.packet.IpAddress;
25 import org.onosproject.net.ConnectPoint; 25 import org.onosproject.net.ConnectPoint;
26 import org.onosproject.net.host.HostService; 26 import org.onosproject.net.host.HostService;
27 -import org.onosproject.routingapi.config.BgpPeer; 27 +import org.onosproject.routing.config.BgpPeer;
28 -import org.onosproject.routingapi.config.BgpSpeaker; 28 +import org.onosproject.routing.config.BgpSpeaker;
29 -import org.onosproject.routingapi.config.Interface; 29 +import org.onosproject.routing.config.Interface;
30 -import org.onosproject.routingapi.config.RoutingConfigurationService; 30 +import org.onosproject.routing.config.RoutingConfigurationService;
31 import org.slf4j.Logger; 31 import org.slf4j.Logger;
32 import org.slf4j.LoggerFactory; 32 import org.slf4j.LoggerFactory;
33 33
......
1 +/*
2 + * Copyright 2015 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 + */
16 +
17 +/**
18 + * Implementation of routing configuration APIs.
19 + */
20 +package org.onosproject.routing.config.impl;
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routing; 16 +package org.onosproject.routing.impl;
17 17
18 import com.google.common.collect.HashMultimap; 18 import com.google.common.collect.HashMultimap;
19 import com.google.common.collect.Multimaps; 19 import com.google.common.collect.Multimaps;
...@@ -37,14 +37,14 @@ import org.onosproject.net.Host; ...@@ -37,14 +37,14 @@ import org.onosproject.net.Host;
37 import org.onosproject.net.host.HostEvent; 37 import org.onosproject.net.host.HostEvent;
38 import org.onosproject.net.host.HostListener; 38 import org.onosproject.net.host.HostListener;
39 import org.onosproject.net.host.HostService; 39 import org.onosproject.net.host.HostService;
40 -import org.onosproject.routingapi.BgpService; 40 +import org.onosproject.routing.BgpService;
41 -import org.onosproject.routingapi.FibEntry; 41 +import org.onosproject.routing.FibEntry;
42 -import org.onosproject.routingapi.FibListener; 42 +import org.onosproject.routing.FibListener;
43 -import org.onosproject.routingapi.FibUpdate; 43 +import org.onosproject.routing.FibUpdate;
44 -import org.onosproject.routingapi.RouteEntry; 44 +import org.onosproject.routing.RouteEntry;
45 -import org.onosproject.routingapi.RouteListener; 45 +import org.onosproject.routing.RouteListener;
46 -import org.onosproject.routingapi.RouteUpdate; 46 +import org.onosproject.routing.RouteUpdate;
47 -import org.onosproject.routingapi.RoutingService; 47 +import org.onosproject.routing.RoutingService;
48 import org.slf4j.Logger; 48 import org.slf4j.Logger;
49 import org.slf4j.LoggerFactory; 49 import org.slf4j.LoggerFactory;
50 50
......
1 +/*
2 + * Copyright 2015 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 + */
16 +
17 +/**
18 + * Implementation of routing functionality.
19 + */
20 +package org.onosproject.routing.impl;
...@@ -33,8 +33,8 @@ import org.onlab.junit.TestUtils; ...@@ -33,8 +33,8 @@ import org.onlab.junit.TestUtils;
33 import org.onlab.junit.TestUtils.TestUtilsException; 33 import org.onlab.junit.TestUtils.TestUtilsException;
34 import org.onlab.packet.Ip4Address; 34 import org.onlab.packet.Ip4Address;
35 import org.onlab.packet.Ip4Prefix; 35 import org.onlab.packet.Ip4Prefix;
36 -import org.onosproject.routingapi.RouteListener; 36 +import org.onosproject.routing.RouteListener;
37 -import org.onosproject.routingapi.RouteUpdate; 37 +import org.onosproject.routing.RouteUpdate;
38 import org.osgi.service.component.ComponentContext; 38 import org.osgi.service.component.ComponentContext;
39 39
40 import java.net.InetAddress; 40 import java.net.InetAddress;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routing.config; 16 +package org.onosproject.routing.config.impl;
17 17
18 import com.google.common.collect.Maps; 18 import com.google.common.collect.Maps;
19 import com.google.common.collect.Sets; 19 import com.google.common.collect.Sets;
...@@ -29,7 +29,7 @@ import org.onosproject.net.PortNumber; ...@@ -29,7 +29,7 @@ import org.onosproject.net.PortNumber;
29 import org.onosproject.net.host.HostService; 29 import org.onosproject.net.host.HostService;
30 import org.onosproject.net.host.InterfaceIpAddress; 30 import org.onosproject.net.host.InterfaceIpAddress;
31 import org.onosproject.net.host.PortAddresses; 31 import org.onosproject.net.host.PortAddresses;
32 -import org.onosproject.routingapi.config.Interface; 32 +import org.onosproject.routing.config.Interface;
33 33
34 import java.util.Collections; 34 import java.util.Collections;
35 import java.util.Map; 35 import java.util.Map;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routing; 16 +package org.onosproject.routing.impl;
17 17
18 import com.google.common.collect.Sets; 18 import com.google.common.collect.Sets;
19 import org.junit.After; 19 import org.junit.After;
...@@ -36,14 +36,14 @@ import org.onosproject.net.host.HostEvent; ...@@ -36,14 +36,14 @@ import org.onosproject.net.host.HostEvent;
36 import org.onosproject.net.host.HostListener; 36 import org.onosproject.net.host.HostListener;
37 import org.onosproject.net.host.HostService; 37 import org.onosproject.net.host.HostService;
38 import org.onosproject.net.provider.ProviderId; 38 import org.onosproject.net.provider.ProviderId;
39 -import org.onosproject.routing.Router.InternalHostListener; 39 +import org.onosproject.routing.impl.Router.InternalHostListener;
40 -import org.onosproject.routingapi.BgpService; 40 +import org.onosproject.routing.BgpService;
41 -import org.onosproject.routingapi.FibEntry; 41 +import org.onosproject.routing.FibEntry;
42 -import org.onosproject.routingapi.FibListener; 42 +import org.onosproject.routing.FibListener;
43 -import org.onosproject.routingapi.FibUpdate; 43 +import org.onosproject.routing.FibUpdate;
44 -import org.onosproject.routingapi.RouteEntry; 44 +import org.onosproject.routing.RouteEntry;
45 -import org.onosproject.routingapi.RouteListener; 45 +import org.onosproject.routing.RouteListener;
46 -import org.onosproject.routingapi.RouteUpdate; 46 +import org.onosproject.routing.RouteUpdate;
47 47
48 import java.util.Collections; 48 import java.util.Collections;
49 49
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.routing; 16 +package org.onosproject.routing.impl;
17 17
18 import com.google.common.collect.Sets; 18 import com.google.common.collect.Sets;
19 import org.junit.After; 19 import org.junit.After;
...@@ -35,13 +35,13 @@ import org.onosproject.net.PortNumber; ...@@ -35,13 +35,13 @@ import org.onosproject.net.PortNumber;
35 import org.onosproject.net.host.HostListener; 35 import org.onosproject.net.host.HostListener;
36 import org.onosproject.net.host.HostService; 36 import org.onosproject.net.host.HostService;
37 import org.onosproject.net.provider.ProviderId; 37 import org.onosproject.net.provider.ProviderId;
38 -import org.onosproject.routingapi.BgpService; 38 +import org.onosproject.routing.BgpService;
39 -import org.onosproject.routingapi.FibEntry; 39 +import org.onosproject.routing.FibEntry;
40 -import org.onosproject.routingapi.FibListener; 40 +import org.onosproject.routing.FibListener;
41 -import org.onosproject.routingapi.FibUpdate; 41 +import org.onosproject.routing.FibUpdate;
42 -import org.onosproject.routingapi.RouteEntry; 42 +import org.onosproject.routing.RouteEntry;
43 -import org.onosproject.routingapi.RouteListener; 43 +import org.onosproject.routing.RouteListener;
44 -import org.onosproject.routingapi.RouteUpdate; 44 +import org.onosproject.routing.RouteUpdate;
45 45
46 import java.util.Collections; 46 import java.util.Collections;
47 47
......
...@@ -35,11 +35,11 @@ import org.onosproject.net.intent.IntentService; ...@@ -35,11 +35,11 @@ import org.onosproject.net.intent.IntentService;
35 import org.onosproject.net.intent.IntentState; 35 import org.onosproject.net.intent.IntentState;
36 import org.onosproject.net.intent.MultiPointToSinglePointIntent; 36 import org.onosproject.net.intent.MultiPointToSinglePointIntent;
37 import org.onosproject.net.intent.PointToPointIntent; 37 import org.onosproject.net.intent.PointToPointIntent;
38 -import org.onosproject.routingapi.FibListener; 38 +import org.onosproject.routing.FibListener;
39 -import org.onosproject.routingapi.FibUpdate; 39 +import org.onosproject.routing.FibUpdate;
40 -import org.onosproject.routingapi.config.BgpPeer; 40 +import org.onosproject.routing.config.BgpPeer;
41 -import org.onosproject.routingapi.config.Interface; 41 +import org.onosproject.routing.config.Interface;
42 -import org.onosproject.routingapi.config.RoutingConfigurationService; 42 +import org.onosproject.routing.config.RoutingConfigurationService;
43 import org.slf4j.Logger; 43 import org.slf4j.Logger;
44 import org.slf4j.LoggerFactory; 44 import org.slf4j.LoggerFactory;
45 45
......
...@@ -28,11 +28,11 @@ import org.onosproject.net.flow.DefaultTrafficTreatment; ...@@ -28,11 +28,11 @@ import org.onosproject.net.flow.DefaultTrafficTreatment;
28 import org.onosproject.net.flow.TrafficSelector; 28 import org.onosproject.net.flow.TrafficSelector;
29 import org.onosproject.net.flow.TrafficTreatment; 29 import org.onosproject.net.flow.TrafficTreatment;
30 import org.onosproject.net.intent.PointToPointIntent; 30 import org.onosproject.net.intent.PointToPointIntent;
31 -import org.onosproject.routingapi.config.BgpPeer; 31 +import org.onosproject.routing.config.BgpPeer;
32 -import org.onosproject.routingapi.config.BgpSpeaker; 32 +import org.onosproject.routing.config.BgpSpeaker;
33 -import org.onosproject.routingapi.config.Interface; 33 +import org.onosproject.routing.config.Interface;
34 -import org.onosproject.routingapi.config.InterfaceAddress; 34 +import org.onosproject.routing.config.InterfaceAddress;
35 -import org.onosproject.routingapi.config.RoutingConfigurationService; 35 +import org.onosproject.routing.config.RoutingConfigurationService;
36 import org.slf4j.Logger; 36 import org.slf4j.Logger;
37 import org.slf4j.LoggerFactory; 37 import org.slf4j.LoggerFactory;
38 38
......
...@@ -30,8 +30,8 @@ import org.onosproject.config.NetworkConfigService; ...@@ -30,8 +30,8 @@ import org.onosproject.config.NetworkConfigService;
30 import org.onosproject.core.ApplicationId; 30 import org.onosproject.core.ApplicationId;
31 import org.onosproject.core.CoreService; 31 import org.onosproject.core.CoreService;
32 import org.onosproject.net.intent.IntentService; 32 import org.onosproject.net.intent.IntentService;
33 -import org.onosproject.routingapi.RoutingService; 33 +import org.onosproject.routing.RoutingService;
34 -import org.onosproject.routingapi.config.RoutingConfigurationService; 34 +import org.onosproject.routing.config.RoutingConfigurationService;
35 import org.slf4j.Logger; 35 import org.slf4j.Logger;
36 36
37 import static org.slf4j.LoggerFactory.getLogger; 37 import static org.slf4j.LoggerFactory.getLogger;
......
...@@ -41,12 +41,12 @@ import org.onosproject.net.intent.Intent; ...@@ -41,12 +41,12 @@ import org.onosproject.net.intent.Intent;
41 import org.onosproject.net.intent.IntentService; 41 import org.onosproject.net.intent.IntentService;
42 import org.onosproject.net.intent.IntentState; 42 import org.onosproject.net.intent.IntentState;
43 import org.onosproject.net.intent.MultiPointToSinglePointIntent; 43 import org.onosproject.net.intent.MultiPointToSinglePointIntent;
44 -import org.onosproject.routingapi.FibEntry; 44 +import org.onosproject.routing.FibEntry;
45 -import org.onosproject.routingapi.FibUpdate; 45 +import org.onosproject.routing.FibUpdate;
46 -import org.onosproject.routingapi.RouteEntry; 46 +import org.onosproject.routing.RouteEntry;
47 -import org.onosproject.routingapi.config.BgpPeer; 47 +import org.onosproject.routing.config.BgpPeer;
48 -import org.onosproject.routingapi.config.Interface; 48 +import org.onosproject.routing.config.Interface;
49 -import org.onosproject.routingapi.config.RoutingConfigurationService; 49 +import org.onosproject.routing.config.RoutingConfigurationService;
50 import org.onosproject.sdnip.IntentSynchronizer.IntentKey; 50 import org.onosproject.sdnip.IntentSynchronizer.IntentKey;
51 51
52 import java.util.Collections; 52 import java.util.Collections;
......
...@@ -40,11 +40,11 @@ import org.onosproject.net.intent.AbstractIntentTest; ...@@ -40,11 +40,11 @@ import org.onosproject.net.intent.AbstractIntentTest;
40 import org.onosproject.net.intent.Intent; 40 import org.onosproject.net.intent.Intent;
41 import org.onosproject.net.intent.IntentService; 41 import org.onosproject.net.intent.IntentService;
42 import org.onosproject.net.intent.PointToPointIntent; 42 import org.onosproject.net.intent.PointToPointIntent;
43 -import org.onosproject.routingapi.config.BgpPeer; 43 +import org.onosproject.routing.config.BgpPeer;
44 -import org.onosproject.routingapi.config.BgpSpeaker; 44 +import org.onosproject.routing.config.BgpSpeaker;
45 -import org.onosproject.routingapi.config.Interface; 45 +import org.onosproject.routing.config.Interface;
46 -import org.onosproject.routingapi.config.InterfaceAddress; 46 +import org.onosproject.routing.config.InterfaceAddress;
47 -import org.onosproject.routingapi.config.RoutingConfigurationService; 47 +import org.onosproject.routing.config.RoutingConfigurationService;
48 48
49 import java.util.ArrayList; 49 import java.util.ArrayList;
50 import java.util.Collections; 50 import java.util.Collections;
......