Trigger pipeconf deploy right after registration
Without waiting for the next pipeconf watchdog periodic probe.
To support this, this patch extends the PiPipeconfService to advertise
pipeconf registration events.
Change-Id: Ib44f1813bd37083c666a5e7980de320ce469c2d2
diff --git a/core/store/dist/src/main/java/org/onosproject/store/pi/impl/DistributedDevicePipeconfMappingStore.java b/core/store/dist/src/main/java/org/onosproject/store/pi/impl/DistributedDevicePipeconfMappingStore.java
index a732cad..34a1b27 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/pi/impl/DistributedDevicePipeconfMappingStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/pi/impl/DistributedDevicePipeconfMappingStore.java
@@ -58,7 +58,7 @@
protected ConsistentMap<DeviceId, PiPipeconfId> deviceToPipeconf;
- protected final MapEventListener<DeviceId, PiPipeconfId> pipeconfListener =
+ protected final MapEventListener<DeviceId, PiPipeconfId> mapListener =
new InternalPiPipeconfListener();
protected SetMultimap<PiPipeconfId, DeviceId> pipeconfToDevices =
@@ -70,13 +70,13 @@
.withName("onos-pipeconf-table")
.withSerializer(Serializer.using(KryoNamespaces.API))
.build();
- deviceToPipeconf.addListener(pipeconfListener);
+ deviceToPipeconf.addListener(mapListener);
log.info("Started");
}
@Deactivate
public void deactivate() {
- deviceToPipeconf.removeListener(pipeconfListener);
+ deviceToPipeconf.removeListener(mapListener);
deviceToPipeconf = null;
pipeconfToDevices = null;
log.info("Stopped");