Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Commit

Permalink
include test-model in odl-etcd-demo-restconf and document demo steps
Browse files Browse the repository at this point in the history
also switch from odl-restconf to odl-restconf-all so that
theodl-mdsal-apidocs UI is also included for demos.
  • Loading branch information
vorburger committed Sep 18, 2018
1 parent 381f3ae commit 0259230
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,20 @@ Configure the etcd connection URL (_TODO this is a hack which will change to be
mkdir karaf/target/assembly/../../jetcd-launcher-maven-plugin/
echo http://localhost:2379 >karaf/target/assembly/../../jetcd-launcher-maven-plugin/endpoint

Now start Karaf and make sure it's happy:
Now start ODL and make sure it's happy:

./karaf/target/assembly/bin/karaf
opendaylight-user@root>feature:list -i
opendaylight-user@root>diag

You can now use RESTCONF as usual - but it runs on etcd:
Note how there is no `karaf/target/assembly/etc/org.opendaylight.controller.cluster.datastore.cfg` now, thus "proving" that we don't run the existing ODL datastore anymore. You can now use RESTCONF as usual - but it runs on etcd! [Open apidoc/explorer](http://localhost:8181/apidoc/explorer/index.html) (admin/admin), and watch the logs (`tail -f karaf/target/assembly/data/log/karaf.log`) to understand what happens when you e.g. do:

_TODO_.
http -a admin:admin GET http://localhost:8181/restconf/config/opendaylight-etcd-test:HelloWorldContainer
echo '<HelloWorldContainer xmlns="urn:opendaylight:etcd:test"><name>hello, world</name></HelloWorldContainer>' >put.xml
http -v -a admin:admin PUT :8181/restconf/config/opendaylight-etcd-test:HelloWorldContainer @put.xml
http -a admin:admin GET :8181/restconf/config/opendaylight-etcd-test:HelloWorldContainer
http -a admin:admin DELETE :8181/restconf/config/opendaylight-etcd-test:HelloWorldContainer
http -a admin:admin GET :8181/restconf/config/opendaylight-etcd-test:HelloWorldContainer


### Standalone
Expand Down
8 changes: 7 additions & 1 deletion features/odl-etcd-demo-restconf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
<packaging>feature</packaging>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>test-model</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<!-- Beware, this is our (etcd) odl-mdsal-broker, not mdsal's! -->
Expand All @@ -34,7 +40,7 @@
</dependency>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>odl-restconf</artifactId>
<artifactId>odl-restconf-all</artifactId>
<version>1.9.0-SNAPSHOT</version>
<type>xml</type>
<classifier>features</classifier>
Expand Down

0 comments on commit 0259230

Please sign in to comment.