Jonathan Hart
Committed by Gerrit Code Review

Follow ONOS naming convention in PIM application

Change-Id: Id553a89630b44eafc791e54e54b043fb4182e324
...@@ -18,8 +18,8 @@ package org.onosproject.pim.cli; ...@@ -18,8 +18,8 @@ package org.onosproject.pim.cli;
18 18
19 import org.apache.karaf.shell.commands.Command; 19 import org.apache.karaf.shell.commands.Command;
20 import org.onosproject.cli.AbstractShellCommand; 20 import org.onosproject.cli.AbstractShellCommand;
21 -import org.onosproject.pim.impl.PIMInterface; 21 +import org.onosproject.pim.impl.PimInterface;
22 -import org.onosproject.pim.impl.PIMInterfaceService; 22 +import org.onosproject.pim.impl.PimInterfaceService;
23 23
24 import java.util.Set; 24 import java.util.Set;
25 25
...@@ -35,9 +35,9 @@ public class PimInterfacesListCommand extends AbstractShellCommand { ...@@ -35,9 +35,9 @@ public class PimInterfacesListCommand extends AbstractShellCommand {
35 35
36 @Override 36 @Override
37 protected void execute() { 37 protected void execute() {
38 - PIMInterfaceService interfaceService = get(PIMInterfaceService.class); 38 + PimInterfaceService interfaceService = get(PimInterfaceService.class);
39 39
40 - Set<PIMInterface> interfaces = interfaceService.getPimInterfaces(); 40 + Set<PimInterface> interfaces = interfaceService.getPimInterfaces();
41 41
42 interfaces.forEach(pimIntf -> { 42 interfaces.forEach(pimIntf -> {
43 print(FORMAT, pimIntf.getInterface().name(), 43 print(FORMAT, pimIntf.getInterface().name(),
......
...@@ -19,9 +19,9 @@ package org.onosproject.pim.cli; ...@@ -19,9 +19,9 @@ package org.onosproject.pim.cli;
19 import org.apache.karaf.shell.commands.Command; 19 import org.apache.karaf.shell.commands.Command;
20 import org.onlab.util.Tools; 20 import org.onlab.util.Tools;
21 import org.onosproject.cli.AbstractShellCommand; 21 import org.onosproject.cli.AbstractShellCommand;
22 -import org.onosproject.pim.impl.PIMInterface; 22 +import org.onosproject.pim.impl.PimInterface;
23 -import org.onosproject.pim.impl.PIMInterfaceService; 23 +import org.onosproject.pim.impl.PimInterfaceService;
24 -import org.onosproject.pim.impl.PIMNeighbor; 24 +import org.onosproject.pim.impl.PimNeighbor;
25 25
26 import java.util.Set; 26 import java.util.Set;
27 27
...@@ -37,13 +37,13 @@ public class PimNeighborsListCommand extends AbstractShellCommand { ...@@ -37,13 +37,13 @@ public class PimNeighborsListCommand extends AbstractShellCommand {
37 37
38 @Override 38 @Override
39 protected void execute() { 39 protected void execute() {
40 - PIMInterfaceService interfaceService = get(PIMInterfaceService.class); 40 + PimInterfaceService interfaceService = get(PimInterfaceService.class);
41 41
42 - Set<PIMInterface> interfaces = interfaceService.getPimInterfaces(); 42 + Set<PimInterface> interfaces = interfaceService.getPimInterfaces();
43 43
44 - for (PIMInterface intf : interfaces) { 44 + for (PimInterface intf : interfaces) {
45 print(INTF_FORMAT, intf.getInterface().name(), intf.getIpAddress()); 45 print(INTF_FORMAT, intf.getInterface().name(), intf.getIpAddress());
46 - for (PIMNeighbor neighbor : intf.getNeighbors()) { 46 + for (PimNeighbor neighbor : intf.getNeighbors()) {
47 // Filter out the PIM neighbor representing 'us' 47 // Filter out the PIM neighbor representing 'us'
48 if (!neighbor.ipAddress().equals(intf.getIpAddress())) { 48 if (!neighbor.ipAddress().equals(intf.getIpAddress())) {
49 print(NEIGHBOR_FORMAT, neighbor.ipAddress(), 49 print(NEIGHBOR_FORMAT, neighbor.ipAddress(),
......
...@@ -42,7 +42,7 @@ import static org.slf4j.LoggerFactory.getLogger; ...@@ -42,7 +42,7 @@ import static org.slf4j.LoggerFactory.getLogger;
42 * The main PIM controller class. 42 * The main PIM controller class.
43 */ 43 */
44 @Component(immediate = true) 44 @Component(immediate = true)
45 -public class PIMApplication { 45 +public class PimApplication {
46 private final Logger log = getLogger(getClass()); 46 private final Logger log = getLogger(getClass());
47 47
48 // Used to get the appId 48 // Used to get the appId
...@@ -61,13 +61,13 @@ public class PIMApplication { ...@@ -61,13 +61,13 @@ public class PIMApplication {
61 protected MulticastRouteService ms; 61 protected MulticastRouteService ms;
62 62
63 // Create an instance of the PIM packet handler 63 // Create an instance of the PIM packet handler
64 - protected PIMPacketHandler pimPacketHandler; 64 + protected PimPacketHandler pimPacketHandler;
65 65
66 // Provide interfaces to the pimInterface manager as a result of Netconfig updates. 66 // Provide interfaces to the pimInterface manager as a result of Netconfig updates.
67 @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) 67 @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
68 - protected PIMInterfaceService pimInterfaceManager; 68 + protected PimInterfaceService pimInterfaceManager;
69 69
70 - private final PIMPacketProcessor processor = new PIMPacketProcessor(); 70 + private final PimPacketProcessor processor = new PimPacketProcessor();
71 71
72 /** 72 /**
73 * Activate the PIM component. 73 * Activate the PIM component.
...@@ -89,7 +89,7 @@ public class PIMApplication { ...@@ -89,7 +89,7 @@ public class PIMApplication {
89 appId, Optional.empty()); 89 appId, Optional.empty());
90 90
91 // Get a copy of the PIM Packet Handler 91 // Get a copy of the PIM Packet Handler
92 - pimPacketHandler = new PIMPacketHandler(); 92 + pimPacketHandler = new PimPacketHandler();
93 93
94 log.info("Started"); 94 log.info("Started");
95 } 95 }
...@@ -108,7 +108,7 @@ public class PIMApplication { ...@@ -108,7 +108,7 @@ public class PIMApplication {
108 * The class that will receive PIM packets, sanitize them, determine the PIMInterface 108 * The class that will receive PIM packets, sanitize them, determine the PIMInterface
109 * they arrived on, then forward them on to be processed by the appropriate entity. 109 * they arrived on, then forward them on to be processed by the appropriate entity.
110 */ 110 */
111 - public class PIMPacketProcessor implements PacketProcessor { 111 + public class PimPacketProcessor implements PacketProcessor {
112 112
113 @Override 113 @Override
114 public void process(PacketContext context) { 114 public void process(PacketContext context) {
...@@ -135,7 +135,7 @@ public class PIMApplication { ...@@ -135,7 +135,7 @@ public class PIMApplication {
135 } 135 }
136 136
137 // Get the PIM Interface the packet was received on. 137 // Get the PIM Interface the packet was received on.
138 - PIMInterface pimi = pimInterfaceManager.getPIMInterface(pkt.receivedFrom()); 138 + PimInterface pimi = pimInterfaceManager.getPimInterface(pkt.receivedFrom());
139 if (pimi == null) { 139 if (pimi == null) {
140 return; 140 return;
141 } 141 }
......
...@@ -55,7 +55,7 @@ import static org.slf4j.LoggerFactory.getLogger; ...@@ -55,7 +55,7 @@ import static org.slf4j.LoggerFactory.getLogger;
55 * PIM Interface represents an ONOS Interface with IP and MAC addresses for 55 * PIM Interface represents an ONOS Interface with IP and MAC addresses for
56 * a given ConnectPoint. 56 * a given ConnectPoint.
57 */ 57 */
58 -public final class PIMInterface { 58 +public final class PimInterface {
59 59
60 private final Logger log = getLogger(getClass()); 60 private final Logger log = getLogger(getClass());
61 61
...@@ -87,7 +87,7 @@ public final class PIMInterface { ...@@ -87,7 +87,7 @@ public final class PIMInterface {
87 private IpAddress drIpaddress; 87 private IpAddress drIpaddress;
88 88
89 // A map of all our PIM neighbors keyed on our neighbors IP address 89 // A map of all our PIM neighbors keyed on our neighbors IP address
90 - private Map<IpAddress, PIMNeighbor> pimNeighbors = new ConcurrentHashMap<>(); 90 + private Map<IpAddress, PimNeighbor> pimNeighbors = new ConcurrentHashMap<>();
91 91
92 private Map<McastRoute, RouteData> routes = new ConcurrentHashMap<>(); 92 private Map<McastRoute, RouteData> routes = new ConcurrentHashMap<>();
93 93
...@@ -101,7 +101,7 @@ public final class PIMInterface { ...@@ -101,7 +101,7 @@ public final class PIMInterface {
101 * @param overrideInterval override interval 101 * @param overrideInterval override interval
102 * @param packetService reference to the packet service 102 * @param packetService reference to the packet service
103 */ 103 */
104 - private PIMInterface(Interface intf, 104 + private PimInterface(Interface intf,
105 int helloInterval, 105 int helloInterval,
106 short holdTime, 106 short holdTime,
107 int priority, 107 int priority,
...@@ -122,7 +122,7 @@ public final class PIMInterface { ...@@ -122,7 +122,7 @@ public final class PIMInterface {
122 generationId = new Random().nextInt(); 122 generationId = new Random().nextInt();
123 123
124 // Create a PIM Neighbor to represent ourselves for DR election. 124 // Create a PIM Neighbor to represent ourselves for DR election.
125 - PIMNeighbor us = new PIMNeighbor(ourIp, mac, holdTime, 0, priority, generationId); 125 + PimNeighbor us = new PimNeighbor(ourIp, mac, holdTime, 0, priority, generationId);
126 126
127 pimNeighbors.put(ourIp, us); 127 pimNeighbors.put(ourIp, us);
128 drIpaddress = ourIp; 128 drIpaddress = ourIp;
...@@ -150,7 +150,7 @@ public final class PIMInterface { ...@@ -150,7 +150,7 @@ public final class PIMInterface {
150 * @param intf ONOS Interface 150 * @param intf ONOS Interface
151 * @return PIM interface instance 151 * @return PIM interface instance
152 */ 152 */
153 - public PIMInterface setInterface(Interface intf) { 153 + public PimInterface setInterface(Interface intf) {
154 onosInterface = intf; 154 onosInterface = intf;
155 return this; 155 return this;
156 } 156 }
...@@ -223,7 +223,7 @@ public final class PIMInterface { ...@@ -223,7 +223,7 @@ public final class PIMInterface {
223 * 223 *
224 * @return PIM neighbors 224 * @return PIM neighbors
225 */ 225 */
226 - public Collection<PIMNeighbor> getNeighbors() { 226 + public Collection<PimNeighbor> getNeighbors() {
227 return ImmutableList.copyOf(pimNeighbors.values()); 227 return ImmutableList.copyOf(pimNeighbors.values());
228 } 228 }
229 229
...@@ -236,13 +236,13 @@ public final class PIMInterface { ...@@ -236,13 +236,13 @@ public final class PIMInterface {
236 * state if they have. 236 * state if they have.
237 */ 237 */
238 public void checkNeighborTimeouts() { 238 public void checkNeighborTimeouts() {
239 - Set<PIMNeighbor> expired = pimNeighbors.values().stream() 239 + Set<PimNeighbor> expired = pimNeighbors.values().stream()
240 // Don't time ourselves out! 240 // Don't time ourselves out!
241 .filter(neighbor -> !neighbor.ipAddress().equals(getIpAddress())) 241 .filter(neighbor -> !neighbor.ipAddress().equals(getIpAddress()))
242 .filter(neighbor -> neighbor.isExpired()) 242 .filter(neighbor -> neighbor.isExpired())
243 .collect(Collectors.toSet()); 243 .collect(Collectors.toSet());
244 244
245 - for (PIMNeighbor neighbor : expired) { 245 + for (PimNeighbor neighbor : expired) {
246 log.info("Timing out neighbor {}", neighbor); 246 log.info("Timing out neighbor {}", neighbor);
247 pimNeighbors.remove(neighbor.ipAddress(), neighbor); 247 pimNeighbors.remove(neighbor.ipAddress(), neighbor);
248 } 248 }
...@@ -262,7 +262,7 @@ public final class PIMInterface { ...@@ -262,7 +262,7 @@ public final class PIMInterface {
262 lastHello = System.currentTimeMillis(); 262 lastHello = System.currentTimeMillis();
263 263
264 // Create the base PIM Packet and mark it a hello packet 264 // Create the base PIM Packet and mark it a hello packet
265 - PIMPacket pimPacket = new PIMPacket(PIM.TYPE_HELLO); 265 + PimPacket pimPacket = new PimPacket(PIM.TYPE_HELLO);
266 266
267 // We need to set the source MAC and IPv4 addresses 267 // We need to set the source MAC and IPv4 addresses
268 pimPacket.setSrcMacAddr(onosInterface.mac()); 268 pimPacket.setSrcMacAddr(onosInterface.mac());
...@@ -276,7 +276,7 @@ public final class PIMInterface { ...@@ -276,7 +276,7 @@ public final class PIMInterface {
276 hello.addOption(PIMHelloOption.createGenID(generationId)); 276 hello.addOption(PIMHelloOption.createGenID(generationId));
277 277
278 // Now set the hello option payload 278 // Now set the hello option payload
279 - pimPacket.setPIMPayload(hello); 279 + pimPacket.setPimPayload(hello);
280 280
281 packetService.emit(new DefaultOutboundPacket( 281 packetService.emit(new DefaultOutboundPacket(
282 onosInterface.connectPoint().deviceId(), 282 onosInterface.connectPoint().deviceId(),
...@@ -315,7 +315,7 @@ public final class PIMInterface { ...@@ -315,7 +315,7 @@ public final class PIMInterface {
315 } 315 }
316 316
317 // get the DR values for later calculation 317 // get the DR values for later calculation
318 - PIMNeighbor dr = pimNeighbors.get(drIpaddress); 318 + PimNeighbor dr = pimNeighbors.get(drIpaddress);
319 checkNotNull(dr); 319 checkNotNull(dr);
320 320
321 IpAddress drip = drIpaddress; 321 IpAddress drip = drIpaddress;
...@@ -328,8 +328,8 @@ public final class PIMInterface { ...@@ -328,8 +328,8 @@ public final class PIMInterface {
328 PIMHello hello = (PIMHello) pimhdr.getPayload(); 328 PIMHello hello = (PIMHello) pimhdr.getPayload();
329 329
330 // Determine if we already have a PIMNeighbor 330 // Determine if we already have a PIMNeighbor
331 - PIMNeighbor nbr = pimNeighbors.getOrDefault(srcip, null); 331 + PimNeighbor nbr = pimNeighbors.getOrDefault(srcip, null);
332 - PIMNeighbor newNbr = PIMNeighbor.createPimNeighbor(srcip, nbrmac, hello.getOptions().values()); 332 + PimNeighbor newNbr = PimNeighbor.createPimNeighbor(srcip, nbrmac, hello.getOptions().values());
333 333
334 if (nbr == null) { 334 if (nbr == null) {
335 pimNeighbors.putIfAbsent(srcip, newNbr); 335 pimNeighbors.putIfAbsent(srcip, newNbr);
...@@ -364,7 +364,7 @@ public final class PIMInterface { ...@@ -364,7 +364,7 @@ public final class PIMInterface {
364 } 364 }
365 365
366 // Run an election if we need to. Return the elected IP address. 366 // Run an election if we need to. Return the elected IP address.
367 - private IpAddress election(PIMNeighbor nbr, IpAddress drIp, int drPriority) { 367 + private IpAddress election(PimNeighbor nbr, IpAddress drIp, int drPriority) {
368 368
369 IpAddress nbrIp = nbr.ipAddress(); 369 IpAddress nbrIp = nbr.ipAddress();
370 if (nbr.priority() > drPriority) { 370 if (nbr.priority() > drPriority) {
...@@ -494,7 +494,7 @@ public final class PIMInterface { ...@@ -494,7 +494,7 @@ public final class PIMInterface {
494 public static class Builder { 494 public static class Builder {
495 private Interface intf; 495 private Interface intf;
496 private PacketService packetService; 496 private PacketService packetService;
497 - private int helloInterval = PIMInterfaceManager.DEFAULT_HELLO_INTERVAL; 497 + private int helloInterval = PimInterfaceManager.DEFAULT_HELLO_INTERVAL;
498 private short holdtime = PIMHelloOption.DEFAULT_HOLDTIME; 498 private short holdtime = PIMHelloOption.DEFAULT_HOLDTIME;
499 private int priority = PIMHelloOption.DEFAULT_PRIORITY; 499 private int priority = PIMHelloOption.DEFAULT_PRIORITY;
500 private short propagationDelay = PIMHelloOption.DEFAULT_PRUNEDELAY; 500 private short propagationDelay = PIMHelloOption.DEFAULT_PRUNEDELAY;
...@@ -582,11 +582,11 @@ public final class PIMInterface { ...@@ -582,11 +582,11 @@ public final class PIMInterface {
582 * 582 *
583 * @return PIM interface 583 * @return PIM interface
584 */ 584 */
585 - public PIMInterface build() { 585 + public PimInterface build() {
586 checkArgument(intf != null, "Must provide an interface"); 586 checkArgument(intf != null, "Must provide an interface");
587 checkArgument(packetService != null, "Must provide a packet service"); 587 checkArgument(packetService != null, "Must provide a packet service");
588 588
589 - return new PIMInterface(intf, helloInterval, holdtime, priority, 589 + return new PimInterface(intf, helloInterval, holdtime, priority,
590 propagationDelay, overrideInterval, packetService); 590 propagationDelay, overrideInterval, packetService);
591 } 591 }
592 592
......
...@@ -62,7 +62,7 @@ import static org.slf4j.LoggerFactory.getLogger; ...@@ -62,7 +62,7 @@ import static org.slf4j.LoggerFactory.getLogger;
62 */ 62 */
63 @Component(immediate = true) 63 @Component(immediate = true)
64 @Service 64 @Service
65 -public class PIMInterfaceManager implements PIMInterfaceService { 65 +public class PimInterfaceManager implements PimInterfaceService {
66 66
67 private final Logger log = getLogger(getClass()); 67 private final Logger log = getLogger(getClass());
68 68
...@@ -104,9 +104,9 @@ public class PIMInterfaceManager implements PIMInterfaceService { ...@@ -104,9 +104,9 @@ public class PIMInterfaceManager implements PIMInterfaceService {
104 protected RoutingService unicastRoutingService; 104 protected RoutingService unicastRoutingService;
105 105
106 // Store PIM Interfaces in a map key'd by ConnectPoint 106 // Store PIM Interfaces in a map key'd by ConnectPoint
107 - private final Map<ConnectPoint, PIMInterface> pimInterfaces = Maps.newConcurrentMap(); 107 + private final Map<ConnectPoint, PimInterface> pimInterfaces = Maps.newConcurrentMap();
108 108
109 - private final Map<McastRoute, PIMInterface> routes = Maps.newConcurrentMap(); 109 + private final Map<McastRoute, PimInterface> routes = Maps.newConcurrentMap();
110 110
111 private final InternalNetworkConfigListener configListener = 111 private final InternalNetworkConfigListener configListener =
112 new InternalNetworkConfigListener(); 112 new InternalNetworkConfigListener();
...@@ -147,18 +147,18 @@ public class PIMInterfaceManager implements PIMInterfaceService { ...@@ -147,18 +147,18 @@ public class PIMInterfaceManager implements PIMInterfaceService {
147 // Schedule the periodic hello sender. 147 // Schedule the periodic hello sender.
148 scheduledExecutorService.scheduleAtFixedRate( 148 scheduledExecutorService.scheduleAtFixedRate(
149 SafeRecurringTask.wrap( 149 SafeRecurringTask.wrap(
150 - () -> pimInterfaces.values().forEach(PIMInterface::sendHello)), 150 + () -> pimInterfaces.values().forEach(PimInterface::sendHello)),
151 initialHelloDelay, pimHelloPeriod, TimeUnit.MILLISECONDS); 151 initialHelloDelay, pimHelloPeriod, TimeUnit.MILLISECONDS);
152 152
153 // Schedule task to periodically time out expired neighbors 153 // Schedule task to periodically time out expired neighbors
154 scheduledExecutorService.scheduleAtFixedRate( 154 scheduledExecutorService.scheduleAtFixedRate(
155 SafeRecurringTask.wrap( 155 SafeRecurringTask.wrap(
156 - () -> pimInterfaces.values().forEach(PIMInterface::checkNeighborTimeouts)), 156 + () -> pimInterfaces.values().forEach(PimInterface::checkNeighborTimeouts)),
157 0, timeoutTaskPeriod, TimeUnit.MILLISECONDS); 157 0, timeoutTaskPeriod, TimeUnit.MILLISECONDS);
158 158
159 scheduledExecutorService.scheduleAtFixedRate( 159 scheduledExecutorService.scheduleAtFixedRate(
160 SafeRecurringTask.wrap( 160 SafeRecurringTask.wrap(
161 - () -> pimInterfaces.values().forEach(PIMInterface::sendJoins)), 161 + () -> pimInterfaces.values().forEach(PimInterface::sendJoins)),
162 0, joinTaskPeriod, TimeUnit.MILLISECONDS); 162 0, joinTaskPeriod, TimeUnit.MILLISECONDS);
163 163
164 log.info("Started"); 164 log.info("Started");
...@@ -178,8 +178,8 @@ public class PIMInterfaceManager implements PIMInterfaceService { ...@@ -178,8 +178,8 @@ public class PIMInterfaceManager implements PIMInterfaceService {
178 } 178 }
179 179
180 @Override 180 @Override
181 - public PIMInterface getPIMInterface(ConnectPoint cp) { 181 + public PimInterface getPimInterface(ConnectPoint cp) {
182 - PIMInterface pi = pimInterfaces.get(cp); 182 + PimInterface pi = pimInterfaces.get(cp);
183 if (pi == null && log.isTraceEnabled()) { 183 if (pi == null && log.isTraceEnabled()) {
184 log.trace("We have been asked for an Interface we don't have: {}", cp); 184 log.trace("We have been asked for an Interface we don't have: {}", cp);
185 } 185 }
...@@ -187,7 +187,7 @@ public class PIMInterfaceManager implements PIMInterfaceService { ...@@ -187,7 +187,7 @@ public class PIMInterfaceManager implements PIMInterfaceService {
187 } 187 }
188 188
189 @Override 189 @Override
190 - public Set<PIMInterface> getPimInterfaces() { 190 + public Set<PimInterface> getPimInterfaces() {
191 return ImmutableSet.copyOf(pimInterfaces.values()); 191 return ImmutableSet.copyOf(pimInterfaces.values());
192 } 192 }
193 193
...@@ -216,8 +216,8 @@ public class PIMInterfaceManager implements PIMInterfaceService { ...@@ -216,8 +216,8 @@ public class PIMInterfaceManager implements PIMInterfaceService {
216 pimInterfaces.remove(cp); 216 pimInterfaces.remove(cp);
217 } 217 }
218 218
219 - private PIMInterface buildPimInterface(PimInterfaceConfig config, Interface intf) { 219 + private PimInterface buildPimInterface(PimInterfaceConfig config, Interface intf) {
220 - PIMInterface.Builder builder = PIMInterface.builder() 220 + PimInterface.Builder builder = PimInterface.builder()
221 .withPacketService(packetService) 221 .withPacketService(packetService)
222 .withInterface(intf); 222 .withInterface(intf);
223 223
...@@ -231,7 +231,7 @@ public class PIMInterfaceManager implements PIMInterfaceService { ...@@ -231,7 +231,7 @@ public class PIMInterfaceManager implements PIMInterfaceService {
231 } 231 }
232 232
233 private void addRoute(McastRoute route) { 233 private void addRoute(McastRoute route) {
234 - PIMInterface pimInterface = getSourceInterface(route); 234 + PimInterface pimInterface = getSourceInterface(route);
235 235
236 if (pimInterface == null) { 236 if (pimInterface == null) {
237 return; 237 return;
...@@ -241,7 +241,7 @@ public class PIMInterfaceManager implements PIMInterfaceService { ...@@ -241,7 +241,7 @@ public class PIMInterfaceManager implements PIMInterfaceService {
241 } 241 }
242 242
243 private void removeRoute(McastRoute route) { 243 private void removeRoute(McastRoute route) {
244 - PIMInterface pimInterface = routes.remove(route); 244 + PimInterface pimInterface = routes.remove(route);
245 245
246 if (pimInterface == null) { 246 if (pimInterface == null) {
247 return; 247 return;
...@@ -250,7 +250,7 @@ public class PIMInterfaceManager implements PIMInterfaceService { ...@@ -250,7 +250,7 @@ public class PIMInterfaceManager implements PIMInterfaceService {
250 pimInterface.removeRoute(route); 250 pimInterface.removeRoute(route);
251 } 251 }
252 252
253 - private PIMInterface getSourceInterface(McastRoute route) { 253 + private PimInterface getSourceInterface(McastRoute route) {
254 RouteEntry routeEntry = unicastRoutingService.getLongestMatchableRouteEntry(route.source()); 254 RouteEntry routeEntry = unicastRoutingService.getLongestMatchableRouteEntry(route.source());
255 255
256 if (routeEntry == null) { 256 if (routeEntry == null) {
...@@ -265,7 +265,7 @@ public class PIMInterfaceManager implements PIMInterfaceService { ...@@ -265,7 +265,7 @@ public class PIMInterfaceManager implements PIMInterfaceService {
265 return null; 265 return null;
266 } 266 }
267 267
268 - PIMInterface pimInterface = pimInterfaces.get(intf.connectPoint()); 268 + PimInterface pimInterface = pimInterfaces.get(intf.connectPoint());
269 269
270 if (pimInterface == null) { 270 if (pimInterface == null) {
271 log.warn("PIM is not enabled on interface {}", intf); 271 log.warn("PIM is not enabled on interface {}", intf);
......
...@@ -26,7 +26,7 @@ import java.util.Set; ...@@ -26,7 +26,7 @@ import java.util.Set;
26 * 26 *
27 * TODO: Do we need a PIMInterfaceListenerService? Who sould listen to Interfaces changes? 27 * TODO: Do we need a PIMInterfaceListenerService? Who sould listen to Interfaces changes?
28 */ 28 */
29 -public interface PIMInterfaceService { 29 +public interface PimInterfaceService {
30 30
31 /** 31 /**
32 * Returns the PIM interface associated with the given connect point. 32 * Returns the PIM interface associated with the given connect point.
...@@ -34,12 +34,12 @@ public interface PIMInterfaceService { ...@@ -34,12 +34,12 @@ public interface PIMInterfaceService {
34 * @param cp the connect point we want to get the PIM interface for 34 * @param cp the connect point we want to get the PIM interface for
35 * @return the PIM interface if it exists, otherwise null 35 * @return the PIM interface if it exists, otherwise null
36 */ 36 */
37 - PIMInterface getPIMInterface(ConnectPoint cp); 37 + PimInterface getPimInterface(ConnectPoint cp);
38 38
39 /** 39 /**
40 * Retrieves the set of all interfaces running PIM. 40 * Retrieves the set of all interfaces running PIM.
41 * 41 *
42 * @return set of PIM interfaces 42 * @return set of PIM interfaces
43 */ 43 */
44 - Set<PIMInterface> getPimInterfaces(); 44 + Set<PimInterface> getPimInterfaces();
45 } 45 }
......
...@@ -30,7 +30,7 @@ import static com.google.common.base.Preconditions.checkNotNull; ...@@ -30,7 +30,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
30 /** 30 /**
31 * Represents a PIM neighbor. 31 * Represents a PIM neighbor.
32 */ 32 */
33 -public class PIMNeighbor { 33 +public class PimNeighbor {
34 34
35 // IP Address of this neighbor 35 // IP Address of this neighbor
36 private final IpAddress ipAddr; 36 private final IpAddress ipAddr;
...@@ -66,7 +66,7 @@ public class PIMNeighbor { ...@@ -66,7 +66,7 @@ public class PIMNeighbor {
66 * @param priority priority 66 * @param priority priority
67 * @param genId generation ID 67 * @param genId generation ID
68 */ 68 */
69 - public PIMNeighbor(IpAddress ipAddress, MacAddress macAddress, 69 + public PimNeighbor(IpAddress ipAddress, MacAddress macAddress,
70 short holdTime, int pruneDelay, int priority, int genId) { 70 short holdTime, int pruneDelay, int priority, int genId) {
71 this.ipAddr = checkNotNull(ipAddress); 71 this.ipAddr = checkNotNull(ipAddress);
72 this.macAddr = checkNotNull(macAddress); 72 this.macAddr = checkNotNull(macAddress);
...@@ -176,7 +176,7 @@ public class PIMNeighbor { ...@@ -176,7 +176,7 @@ public class PIMNeighbor {
176 * @param opts options from the PIM HELLO packet 176 * @param opts options from the PIM HELLO packet
177 * @return new PIM neighbor 177 * @return new PIM neighbor
178 */ 178 */
179 - public static PIMNeighbor createPimNeighbor(IpAddress ipAddress, 179 + public static PimNeighbor createPimNeighbor(IpAddress ipAddress,
180 MacAddress macAddress, 180 MacAddress macAddress,
181 Collection<PIMHelloOption> opts) { 181 Collection<PIMHelloOption> opts) {
182 182
...@@ -202,16 +202,16 @@ public class PIMNeighbor { ...@@ -202,16 +202,16 @@ public class PIMNeighbor {
202 } 202 }
203 } 203 }
204 204
205 - return new PIMNeighbor(ipAddress, macAddress, holdTime, pruneDelay, priority, generationID); 205 + return new PimNeighbor(ipAddress, macAddress, holdTime, pruneDelay, priority, generationID);
206 } 206 }
207 207
208 @Override 208 @Override
209 public boolean equals(Object other) { 209 public boolean equals(Object other) {
210 - if (!(other instanceof PIMNeighbor)) { 210 + if (!(other instanceof PimNeighbor)) {
211 return false; 211 return false;
212 } 212 }
213 213
214 - PIMNeighbor that = (PIMNeighbor) other; 214 + PimNeighbor that = (PimNeighbor) other;
215 215
216 return this.ipAddr.equals(that.ipAddress()) && 216 return this.ipAddr.equals(that.ipAddress()) &&
217 this.macAddr.equals(that.macAddress()) && 217 this.macAddr.equals(that.macAddress()) &&
......
...@@ -22,7 +22,7 @@ import org.onlab.packet.Ip4Address; ...@@ -22,7 +22,7 @@ import org.onlab.packet.Ip4Address;
22 import org.onlab.packet.MacAddress; 22 import org.onlab.packet.MacAddress;
23 import org.onlab.packet.PIM; 23 import org.onlab.packet.PIM;
24 24
25 -public class PIMPacket { 25 +public class PimPacket {
26 26
27 // Ethernet header 27 // Ethernet header
28 private Ethernet ethHeader = new Ethernet(); 28 private Ethernet ethHeader = new Ethernet();
...@@ -51,7 +51,7 @@ public class PIMPacket { ...@@ -51,7 +51,7 @@ public class PIMPacket {
51 * 51 *
52 * @param type PIM.TYPE_XXXX where XXX is the PIM message type 52 * @param type PIM.TYPE_XXXX where XXX is the PIM message type
53 */ 53 */
54 - public PIMPacket(byte type) { 54 + public PimPacket(byte type) {
55 pimType = type; 55 pimType = type;
56 initDefaults(); 56 initDefaults();
57 } 57 }
...@@ -105,7 +105,7 @@ public class PIMPacket { ...@@ -105,7 +105,7 @@ public class PIMPacket {
105 * 105 *
106 * @param payload the PIM payload 106 * @param payload the PIM payload
107 */ 107 */
108 - public void setPIMPayload(IPacket payload) { 108 + public void setPimPayload(IPacket payload) {
109 pimHeader.setPayload(payload); 109 pimHeader.setPayload(payload);
110 payload.setParent(pimHeader); 110 payload.setParent(pimHeader);
111 } 111 }
......
...@@ -27,14 +27,14 @@ import static org.slf4j.LoggerFactory.getLogger; ...@@ -27,14 +27,14 @@ import static org.slf4j.LoggerFactory.getLogger;
27 /** 27 /**
28 * This class will process PIM packets. 28 * This class will process PIM packets.
29 */ 29 */
30 -public class PIMPacketHandler { 30 +public class PimPacketHandler {
31 31
32 private final Logger log = getLogger(getClass()); 32 private final Logger log = getLogger(getClass());
33 33
34 /** 34 /**
35 * Constructor for this class. 35 * Constructor for this class.
36 */ 36 */
37 - public PIMPacketHandler() { 37 + public PimPacketHandler() {
38 } 38 }
39 39
40 /** 40 /**
...@@ -44,7 +44,7 @@ public class PIMPacketHandler { ...@@ -44,7 +44,7 @@ public class PIMPacketHandler {
44 * @param ethPkt the packet starting with the Ethernet header. 44 * @param ethPkt the packet starting with the Ethernet header.
45 * @param pimi the PIM Interface the packet arrived on. 45 * @param pimi the PIM Interface the packet arrived on.
46 */ 46 */
47 - public void processPacket(Ethernet ethPkt, PIMInterface pimi) { 47 + public void processPacket(Ethernet ethPkt, PimInterface pimi) {
48 checkNotNull(ethPkt); 48 checkNotNull(ethPkt);
49 checkNotNull(pimi); 49 checkNotNull(pimi);
50 50
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
54 54
55 <module>tools/package/archetypes</module> 55 <module>tools/package/archetypes</module>
56 <module>tools/package/branding</module> 56 <module>tools/package/branding</module>
57 + <module>tools/build/conf</module>
57 </modules> 58 </modules>
58 59
59 <url>http://onosproject.org/</url> 60 <url>http://onosproject.org/</url>
...@@ -74,7 +75,7 @@ ...@@ -74,7 +75,7 @@
74 75
75 <properties> 76 <properties>
76 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 77 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
77 - <onos-build-conf.version>1.2</onos-build-conf.version> 78 + <onos-build-conf.version>1.3-SNAPSHOT</onos-build-conf.version>
78 <netty4.version>4.0.33.Final</netty4.version> 79 <netty4.version>4.0.33.Final</netty4.version>
79 <!-- TODO: replace with final release version when it is out --> 80 <!-- TODO: replace with final release version when it is out -->
80 <atomix.version>1.0.0-rc3</atomix.version> 81 <atomix.version>1.0.0-rc3</atomix.version>
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
31 <suppress files="org.onlab.packet.*" checks="AbbreviationAsWordInName" /> 31 <suppress files="org.onlab.packet.*" checks="AbbreviationAsWordInName" />
32 <suppress files="org.onlab.jdvue.*" checks="AbbreviationAsWordInName" /> 32 <suppress files="org.onlab.jdvue.*" checks="AbbreviationAsWordInName" />
33 <suppress files="org.onosproject.driver.pipeline.*" checks="AbbreviationAsWordInName" /> 33 <suppress files="org.onosproject.driver.pipeline.*" checks="AbbreviationAsWordInName" />
34 - <suppress files="org.onosproject.igmp.*" checks="AbbreviationAsWordInName" />
35 - <suppress files="org.onosproject.pim.*" checks="AbbreviationAsWordInName" />
36 <suppress files="org.onosproject.segmentrouting.*" checks="AbbreviationAsWordInName" /> 34 <suppress files="org.onosproject.segmentrouting.*" checks="AbbreviationAsWordInName" />
37 35
38 <!-- Suppressions for unit testing code --> 36 <!-- Suppressions for unit testing code -->
......