Verify that affinity scripts work with integration build.
Signed-off-by: Suchi Raman <suchi.raman@plexxi.com>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>enunciate-core-annotations</artifactId>
<version>${enunciate.version}</version>
- </dependency>
+ </dependency>
</dependencies>
</project>
package org.opendaylight.affinity.affinity;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/* Affinity identifier */
-public class AffinityIdentifier<T> {
+public class AffinityIdentifier<T> implements Serializable, Cloneable {
+ private static final long serialVersionUID = 1L;
private T value;
private String name;
import java.nio.ByteBuffer;
import java.util.Map;
import java.net.UnknownHostException;
+import java.io.Serializable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* This class defines an Inet address mask object.
*/
-public class InetAddressMask {
+public class InetAddressMask implements Cloneable, Serializable {
private String name;
InetAddress networkAddress;
// Called via northbound API -- push all affinities.
public boolean enableAllAffinityLinks() {
this.nodelist = switchManager.getNodes();
+ log.info("Enable all affinity links.");
if (this.nodelist == null) {
log.debug("No nodes in network.");
return true;
</dependency>
</dependencies>
</plugin>
+<!-- <plugin>
+ <groupId>org.codehaus.enunciate</groupId>
+ <artifactId>maven-enunciate-plugin</artifactId>
+ <version>${enunciate.version}</version>
+ <executions>
+ <execution>
+ <configuration>
+ <configFile>enunciate.xml</configFile>
+ </configuration>
+ <goals>
+ <goal>docs</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>commons.logback_settings</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ </plugin> -->
</plugins>
</build>
<reporting>
</plugin>
</plugins>
</reporting>
+
+ <profiles>
+ <profile>
+ <id>docs</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <modules>
+ <module>analytics/northbound</module>
+ <module>affinity/northbound</module>
+ <module>flatl2/northbound</module>
+ </modules>
+ </profile>
+ </profiles>
</project>
m = WaypointMonitor(Stats.TYPE_SUBNET, subnet="10.0.0.0/31")
m.set_waypoint("10.0.0.2")
- m.set_large_flow_threshold(2000) # 2000 bytes
+ m.set_large_flow_threshold(500) # 2000 bytes
m.start()
# Register signal-handler to catch SIG_INT
return nodes
get_flow_stats()
-#get_all_nodes()
+get_all_nodes()