<packaging>jar</packaging>
<properties>
- <yang.version>0.5.8-SNAPSHOT</yang.version>
+ <yang.version>0.5.9-SNAPSHOT</yang.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<artifactId>ietf-yang-types</artifactId>
<version>2010.09.24-SNAPSHOT</version>
</dependency>
- <dependency>
+<!-- <dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-ext</artifactId>
<version>2013.09.07-SNAPSHOT</version>
- </dependency>
+ </dependency>-->
</dependencies>
</project>
<version>0.4.0-SNAPSHOT</version>
<packaging>bundle</packaging>
+ <properties>
+ <yang.version>0.5.9-SNAPSHOT</yang.version>
+ </properties>
+
+ <repositories>
+ <!-- OpenDayLight Released artifact -->
+ <repository>
+ <id>opendaylight-release</id>
+ <name>opendaylight-release</name>
+ <url>${nexusproxy}/repositories/opendaylight.release/</url>
+ </repository>
+ <!-- OpenDayLight Snapshot artifact -->
+ <repository>
+ <id>opendaylight-snapshot</id>
+ <name>opendaylight-snapshot</name>
+ <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
+ </repository>
+ </repositories>
+
<build>
<pluginManagement>
<plugins>
</execution>
</executions>
</plugin>
+ <!-- START YANG -->
+ <plugin>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yang-maven-plugin</artifactId>
+ <version>0.5.9-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <goals>
+ <!-- Uncomment out the next line to use the yang model -->
+<!-- <goal>generate-sources</goal> -->
+ </goals>
+ <configuration>
+ <yangFilesRootDir>src/main/yang</yangFilesRootDir>
+ <codeGenerators>
+ <generator>
+ <codeGeneratorClass>
+ org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
+ </codeGeneratorClass>
+ <outputBaseDir>
+ target/generated-sources/sal
+ </outputBaseDir>
+ </generator>
+ </codeGenerators>
+ <inspectDependencies>false</inspectDependencies>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>maven-sal-api-gen-plugin</artifactId>
+ <version>0.6.0-SNAPSHOT</version>
+ <type>jar</type>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>target/generated-sources/sal</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- END YANG -->
</plugins>
</build>
<dependencies>
<artifactId>statisticsmanager</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>
+ <!-- START YANG -->
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yang-binding</artifactId>
+ <version>${yang.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yang-common</artifactId>
+ <version>${yang.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.yangtools.model</groupId>
+ <artifactId>ietf-inet-types</artifactId>
+ <version>2010.09.24-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.yangtools.model</groupId>
+ <artifactId>ietf-yang-types</artifactId>
+ <version>2010.09.24-SNAPSHOT</version>
+ </dependency>
+ <!-- END YANG -->
</dependencies>
</project>
--- /dev/null
+module analytics-model {
+ namespace "urn:opendaylight:affinity"; // TODO: Change?
+ prefix affinity; // TODO: Change?
+
+ revision "2013-10-16" { description "Initial revision of analytics model"; }
+
+ grouping host-statistics {
+ leaf byte-count { type uint64; }
+ leaf duration {
+ type decimal64 { fraction-digits 2; } // TODO: More?
+ }
+ }
+}
\ No newline at end of file