Add some config files for CLI renderer.
Change-Id: Ia3d9179f028796a7a49c082527dd8815246b05d6
Signed-off-by: Shixing Liu <liushixing@huawei.com>
<classifier>config</classifier>
<type>xml</type>
</dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>cli-renderer</artifactId>
+ <version>${project.version}</version>
+ <classifier>node-resource</classifier>
+ <type>json</type>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>cli-renderer</artifactId>
+ <version>${project.version}</version>
+ <classifier>host-resource</classifier>
+ <type>json</type>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>cli-renderer</artifactId>
+ <version>${project.version}</version>
+ <classifier>link-resource</classifier>
+ <type>json</type>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>cli-renderer</artifactId>
+ <version>${project.version}</version>
+ <classifier>external-resource</classifier>
+ <type>json</type>
+ </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>nemo-ui</artifactId>
<feature version='${project.version}'>odl-nemo-engine-rest</feature>\r
<bundle>mvn:org.opendaylight.nemo/cli-renderer/${project.version}</bundle>\r
<configfile finalname='etc/opendaylight/karaf/02-nemo-cli-renderer.xml'>mvn:org.opendaylight.nemo/cli-renderer/${project.version}/xml/config</configfile>\r
+ <configfile finalname='etc/opendaylight/karaf/nemo-cli-renderer-node-resource.json'>mvn:org.opendaylight.nemo/cli-renderer/${project.version}/json/node-resource</configfile>\r
+ <configfile finalname='etc/opendaylight/karaf/nemo-cli-renderer-link-resource.json'>mvn:org.opendaylight.nemo/cli-renderer/${project.version}/json/link-resource</configfile>\r
+ <configfile finalname='etc/opendaylight/karaf/nemo-cli-renderer-host-resource.json'>mvn:org.opendaylight.nemo/cli-renderer/${project.version}/json/host-resource</configfile>\r
+ <configfile finalname='etc/opendaylight/karaf/nemo-cli-renderer-external-resource.json'>mvn:org.opendaylight.nemo/cli-renderer/${project.version}/json/external-resource</configfile>\r
</feature>\r
<feature name='odl-nemo-engine-ui' version='${project.version}' description='OpenDaylight :: NEMO :: Engine :: UI'>\r
<feature version='${dlux.version}'>odl-dlux-core</feature>\r
</properties>
<dependencies>
+ <dependency>
+ <groupId>org.jboss.netty</groupId>
+ <artifactId>netty</artifactId>
+ <version>3.2.6.Final</version>
+ </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>nemo-api</artifactId>
<artifactId>nemo-impl</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-annotations</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jettison</groupId>
+ <artifactId>jettison</artifactId>
+ </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</plugins>
</pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <instructions>
+ <Export-Package>
+ org.codehaus.jackson,
+ org.codehaus.jackson.*,
+ org.joda.time.*
+ </Export-Package>
+ <Import-Package>*</Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-maven-plugin</artifactId>
<type>xml</type>
<classifier>config</classifier>
</artifact>
+ <artifact>
+ <file>${project.build.directory}/classes/etc/opendaylight/karaf/node-resource.json</file>
+ <type>json</type>
+ <classifier>node-resource</classifier>
+ </artifact>
+ <artifact>
+ <file>${project.build.directory}/classes/etc/opendaylight/karaf/host-resource.json</file>
+ <type>json</type>
+ <classifier>host-resource</classifier>
+ </artifact>
+ <artifact>
+ <file>${project.build.directory}/classes/etc/opendaylight/karaf/link-resource.json</file>
+ <type>json</type>
+ <classifier>link-resource</classifier>
+ </artifact>
+ <artifact>
+ <file>${project.build.directory}/classes/etc/opendaylight/karaf/external-resource.json</file>
+ <type>json</type>
+ <classifier>external-resource</classifier>
+ </artifact>
</artifacts>
</configuration>
</execution>
--- /dev/null
+{\r
+ "external-network: [\r
+ {\r
+ "node-id": "bank-branch1",\r
+ "access-node-id":"HW:NE40E:CE1",\r
+ "access-port-id":"HW:NE40E:CE1:GE1/0/0",\r
+ "layer":"3",\r
+ "protocol":"static",\r
+ "mac-address":""\r
+ },\r
+ {\r
+ "node-id": "bank-branch2",\r
+ "access-node-id":"HW:NE40E:CE2",\r
+ "access-port-id":"HW:NE40E:CE2:GE3/0/2",\r
+ "layer":"3",\r
+ "protocol":"static",\r
+ "mac-address":""\r
+ },\r
+ {\r
+ "node-id": "bank-DC",\r
+ "access-node-id":"HW:NE40E:CE3",\r
+ "access-port-id":"HW:NE40E:CE3:GE1/0/0",\r
+ "layer":"3",\r
+ "protocol":"static" \r
+ "mac-address":""\r
+ }\r
+ ]\r
+}\r
+\r
+\r
+\r
+\r
--- /dev/null
+{ \r
+ "host":[]\r
+}
\ No newline at end of file
--- /dev/null
+{ \r
+ "link": [\r
+ {\r
+ "link-id":"link_1",\r
+ "left-node-id":"HW:NE40E:CE1",\r
+ "left-port-id":"HW:NE40E:CE1:GE1/0/6",\r
+ "right-node-id":"HW:NE40E:PE1",\r
+ "right-port-id":"HW:NE40E:PE1:GE2/0/6",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ {\r
+ "link-id":"link_2",\r
+ "left-node-id":"HW:NE40E:PE1",\r
+ "left-port-id":"HW:NE40E:PE1:GE2/0/6",\r
+ "right-node-id":"HW:NE40E:CE1",\r
+ "right-port-id":"HW:NE40E:CE1:GE1/0/6",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ \r
+ {\r
+ "link-id":"link_3",\r
+ "left-node-id":"HW:NE40E:PE1",\r
+ "left-port-id":"HW:NE40E:PE1:GE2/0/7",\r
+ "right-node-id":"HW:NE40E:PE2",\r
+ "right-port-id":"HW:NE40E:PE2:GE3/0/2",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ {\r
+ "link-id":"link_4",\r
+ "left-node-id":"HW:NE40E:PE2",\r
+ "left-port-id":"HW:NE40E:PE2:GE3/0/2",\r
+ "right-node-id":"HW:NE40E:PE1",\r
+ "right-port-id":"HW:NE40E:PE1:GE2/0/7",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ \r
+ { \r
+ "link-id":"link_5",\r
+ "left-node-id":"HW:NE40E:PE1",\r
+ "left-port-id":"HW:NE40E:PE1:GE2/0/8",\r
+ "right-node-id":"HW:NE40E:PE3",\r
+ "right-port-id":"HW:NE40E:PE3:GE1/0/8",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ {\r
+ "link-id":"link_6",\r
+ "left-node-id":"HW:NE40E:PE3",\r
+ "left-port-id":"HW:NE40E:PE3:GE1/0/8",\r
+ "right-node-id":"HW:NE40E:PE1",\r
+ "right-port-id":"HW:NE40E:PE1:GE2/0/8",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+\r
+ {\r
+ "link-id":"link_7",\r
+ "left-node-id":"HW:NE40E:CE2",\r
+ "left-port-id":"HW:NE40E:CE2:GE3/0/3",\r
+ "right-node-id":"HW:NE40E:PE2",\r
+ "right-port-id":"HW:NE40E:PE2:GE3/0/3",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ {\r
+ "link-id":"link_8",\r
+ "left-node-id":"HW:NE40E:PE2",\r
+ "left-port-id":"HW:NE40E:PE2:GE3/0/3",\r
+ "right-node-id":"HW:NE40E:CE2",\r
+ "right-port-id":"HW:NE40E:CE2:GE3/0/3",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ \r
+ {\r
+ "link-id":"link_9",\r
+ "left-node-id":"HW:NE40E:PE2",\r
+ "left-port-id":"HW:NE40E:PE2:GE3/0/1",\r
+ "right-node-id":"HW:NE40E:PE3",\r
+ "right-port-id":"HW:NE40E:PE3:GE1/0/2",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ {\r
+ "link-id":"link_10",\r
+ "left-node-id":"HW:NE40E:PE3",\r
+ "left-port-id":"HW:NE40E:PE3:GE1/0/2",\r
+ "right-node-id":"HW:NE40E:PE2",\r
+ "right-port-id":"HW:NE40E:PE2:GE3/0/1",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ \r
+ {\r
+ "link-id":"link_11",\r
+ "left-node-id":"HW:NE40E:PE3",\r
+ "left-port-id":"HW:NE40E:PE3:GE1/0/0",\r
+ "right-node-id":"HW:NE40E:CE3",\r
+ "right-port-id":"HW:NE40E:CE3:GE1/0/10",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ },\r
+ {\r
+ "link-id":"link_12",\r
+ "left-node-id":"HW:NE40E:CE3",\r
+ "left-port-id":"HW:NE40E:CE3:GE1/0/10",\r
+ "right-node-id":"HW:NE40E:PE3",\r
+ "right-port-id":"HW:NE40E:PE3:GE1/0/0",\r
+ "link-bandwidth":"10240",\r
+ "metric":"1",\r
+ "delay":"",\r
+ "loss-rate":""\r
+ }\r
+ ]\r
+}
\ No newline at end of file
--- /dev/null
+{\r
+ "node": [\r
+ {\r
+ "node-id": "HW:NE40E:PE1",\r
+ "node-type": "router",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE1"\r
+ },\r
+ {\r
+ "name":"capacity",\r
+ "value":""\r
+ }\r
+ ],\r
+ "port": [\r
+ {\r
+ "port-id": "HW:NE40E:PE1:GE2/0/6",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE1:GE2/0/6"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "port-id": "HW:NE40E:PE1:GE2/0/7",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE1:GE2/0/7"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "port-id": "HW:NE40E:PE1:GE2/0/8",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE1:GE2/0/8"\r
+ }\r
+ ]\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "node-id": "HW:NE40E:PE2",\r
+ "node-type": "router",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE2"\r
+ },\r
+ {\r
+ "name":"capacity",\r
+ "value":""\r
+ }\r
+ ],\r
+ "port": [\r
+ {\r
+ "port-id": "HW:NE40E:PE2:GE3/0/1",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE2:GE3/0/1"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "port-id": "HW:NE40E:PE2:GE3/0/2",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE2:GE3/0/2"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "port-id": "HW:NE40E:PE2:GE3/0/3",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE2:GE3/0/3"\r
+ }\r
+ ]\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "node-id": "HW:NE40E:PE3",\r
+ "node-type": "router",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE3"\r
+ },\r
+ {\r
+ "name":"capacity",\r
+ "value":""\r
+ }\r
+ ],\r
+ "port": [\r
+ {\r
+ "port-id": "HW:NE40E:PE3:GE1/0/0",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE3:GE1/0/0"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "port-id": "HW:NE40E:PE3:GE1/0/2",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE3:GE1/0/2"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "port-id": "HW:NE40E:PE3:GE1/0/8",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:PE3:GE1/0/8"\r
+ }\r
+ ]\r
+ }\r
+ ]\r
+ }, \r
+ {\r
+ "node-id": "HW:NE40E:CE1",\r
+ "node-type": "router",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:CE1"\r
+ },\r
+ {\r
+ "name":"capacity",\r
+ "value":""\r
+ }\r
+ ],\r
+ "port": [\r
+ {\r
+ "port-id": "HW:NE40E:CE1:GE1/0/0",\r
+ "port-type":"external",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:CE1:GE1/0/0"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "port-id": "HW:NE40E:CE1:GE1/0/6",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:CE1:GE1/0/6"\r
+ }\r
+ ]\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "node-id": "HW:NE40E:CE2",\r
+ "node-type": "router",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:CE2"\r
+ },\r
+ {\r
+ "name":"capacity",\r
+ "value":""\r
+ }\r
+ ],\r
+ "port": [\r
+ {\r
+ "port-id": "HW:NE40E:CE2:GE3/0/2",\r
+ "port-type":"external",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:CE2:GE3/0/2"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "port-id": "HW:NE40E:CE2:GE3/0/3",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:CE2:GE3/0/3"\r
+ }\r
+ ]\r
+ }\r
+ ] \r
+ },\r
+ {\r
+ "node-id": "HW:NE40E:CE3",\r
+ "node-type": "router",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:CE3"\r
+ },\r
+ {\r
+ "name":"capacity",\r
+ "value":""\r
+ }\r
+ ],\r
+ "port": [\r
+ {\r
+ "port-id": "HW:NE40E:CE3:GE1/0/0",\r
+ "port-type":"external",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:CE3:GE1/0/0"\r
+ }\r
+ ]\r
+ },\r
+ {\r
+ "port-id": "HW:NE40E:CE3:GE1/0/10",\r
+ "port-type":"internal",\r
+ "port-ip-address": "",\r
+ "port-mac-address":"",\r
+ "mask": "",\r
+ "bandwidth":"",\r
+ "attribute":[\r
+ {\r
+ "name":"location",\r
+ "value":"HW:NE40E:CE3:GE1/0/10"\r
+ }\r
+ ]\r
+ }\r
+ ]\r
+ }\r
+\r
+ ]\r
+}
\ No newline at end of file