Adding configurations instructions for RCORD-Lite

Change-Id: If890543afc60d75bb1c68ac3f0d51979ea7995e8
diff --git a/Makefile b/Makefile
index 5e48058..a8807f8 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@
 LINT_STYLE ?= mdl_relaxed.rb
 
 serve: setup
-	gitbook serve --port 4040
+	npm start
 
 build: setup
 	gitbook build
diff --git a/SUMMARY.md b/SUMMARY.md
index d6d84d5..3480db4 100644
--- a/SUMMARY.md
+++ b/SUMMARY.md
@@ -22,6 +22,7 @@
         * [ONOS](charts/onos.md)
         * [VOLTHA](charts/voltha.md)
         * [Kafka](charts/kafka.md)
+        * [Hippie OSS](charts/hippie-oss.md)
 * [Operating CORD](operating_cord/operating_cord.md)
     * General info
         * [Diagnostics](operating_cord/diag.md)
@@ -31,7 +32,7 @@
         * [XOS Internals](operating_cord/xos_internals.md)
             * [XOS Containers](xos/xos_internals.md)
             * [XOS Configuration](xos/modules/xosconfig.md)
-    * [RCORD](profiles/rcord/setup.md)
+    * [RCORD](profiles/rcord/configuration.md)
 * [Defining Models in CORD](xos/README.md)
     * [XOS Support for Models](xos/dev/xproto.md)
     * [Core Models](xos/core_models.md)
@@ -57,4 +58,3 @@
     * [Test Setup](cord-tester/qa_testsetup.md)
     * [Test Environment](cord-tester/qa_testenv.md)
     * [System Tests](cord-tester/validate_pods.md)
-
diff --git a/charts/hippie-oss.md b/charts/hippie-oss.md
new file mode 100644
index 0000000..4831533
--- /dev/null
+++ b/charts/hippie-oss.md
@@ -0,0 +1,5 @@
+# Deploying Hippie OSS
+
+```shell
+helm install -n hippie-oss hippie-oss
+```
diff --git a/charts/voltha.md b/charts/voltha.md
index 4fe5240..b185e0d 100644
--- a/charts/voltha.md
+++ b/charts/voltha.md
@@ -29,7 +29,7 @@
 
 Deploy Voltha
 ```shell
-helm install -n voltha
+helm install -n voltha voltha
 ```
 
 ## Standard installation process
diff --git a/package.json b/package.json
index c49573d..031c245 100644
--- a/package.json
+++ b/package.json
@@ -4,12 +4,11 @@
   "description": "Documentation for the OpenCORD Project",
   "main": "index.js",
   "dependencies": {
-    "gitbook-plugin-page-toc": "^1.1.0",
-    "gitbook-plugin-smart-nav-collapse": "^0.1.0"
   },
   "devDependencies": {},
   "scripts": {
-    "start": "gitbook serve --log=debug --debug",
+    "prestart": "gitbook install",
+    "start": "gitbook serve --log=debug --debug --port 4040",
     "build": "gitbook build"
   },
   "repository": {
diff --git a/profiles/rcord/configuration.md b/profiles/rcord/configuration.md
new file mode 100644
index 0000000..bd10a45
--- /dev/null
+++ b/profiles/rcord/configuration.md
@@ -0,0 +1,219 @@
+# RCORD POD Configuration
+
+Once all the components needed for RCORD-Lite are up and running on your POD,
+you'll need to configure XOS with the proper configuration.
+Being this configuration environment specific, you'll need to create your own,
+here is a reference for it:
+
+```yaml
+tosca_definitions_version: tosca_simple_yaml_1_0
+imports:
+  - custom_types/oltdevice.yaml
+  - custom_types/switch.yaml
+  - custom_types/switchport.yaml
+  - custom_types/portinterface.yaml
+  - custom_types/voltservice.yaml
+  - custom_types/vrouterserviceinstance.yaml
+  - custom_types/vrouterstaticroute.yaml
+
+description: Configures a full R-CORD POD
+
+topology_template:
+  node_templates:
+    # Fabric configuration
+    switch#my_fabric_switch:
+      type: tosca.nodes.Switch
+      properties:
+        driver: ofdpa3
+        ipv4Loopback: 192.168.0.201
+        ipv4NodeSid: 17
+        isEdgeRouter: True
+        name: my_fabric_switch
+        ofId: of:0000000000000001
+        routerMac: 00:00:02:01:06:01
+
+    # Setup the OLT switch port
+    port#olt_port:
+      type: tosca.nodes.SwitchPort
+      properties:
+        portId: 1
+      requirements:
+        - switch:
+            node: switch#my_fabric_switch
+            relationship: tosca.relationships.BelongsToOne
+
+    # Setup the OLT switch port interface
+    interface#olt_interface:
+      type: tosca.nodes.PortInterface
+      properties:
+        ips: 192.168.0.254/24
+        name: olt_interface
+      requirements:
+        - port:
+            node: port#olt_port
+            relationship: tosca.relationships.BelongsToOne
+
+    # Setup the fabric switch port where the external
+    # router is connected to
+    port#vrouter_port:
+      type: tosca.nodes.SwitchPort
+      properties:
+        portId: 31
+      requirements:
+        - switch:
+            node: switch#my_fabric_switch
+            relationship: tosca.relationships.BelongsToOne
+
+    # Setup the fabric switch port interface where the
+    # external router is connected to
+    interface#vrouter_interface:
+      type: tosca.nodes.PortInterface
+      properties:
+        name: vrouter_interface
+        vlanUntagged: 40
+        ips: 10.231.254.2/29
+      requirements:
+        - port:
+            node: port#vrouter_port
+            relationship: tosca.relationships.BelongsToOne
+
+    # Add a vRouter (ONOS)
+    vrouter#my_vrouter:
+      type: tosca.nodes.VRouterServiceInstance
+      properties:
+        name: my_vrouter
+
+    # Add a static route to the vRouter (ONOS)
+    route#my_route:
+      type: tosca.nodes.VRouterStaticRoute
+      properties:
+        prefix: "0.0.0.0/0"
+        next_hop: "10.231.254.1"
+      requirements:
+        - vrouter:
+            node: vrouter#my_vrouter
+            relationship: tosca.relationships.BelongsToOne
+
+    # Setup the OLT service
+    service#volt:
+      type: tosca.nodes.VOLTService
+      properties:
+        name: volt
+        must-exist: true
+
+    # Setup the OLT device
+    olt_device:
+      type: tosca.nodes.OLTDevice
+      properties:
+        dp_id: of:0000deadbeeffeed
+        name: volt-1
+        device_type: openolt
+        host: 10.90.0.114
+        port: 9191
+        switch_datapath_id: of:0000000000000001
+        switch_port: "1"
+        outer_tpid: "0x8100"
+      requirements:
+        - volt_service:
+            node: service#volt
+            relationship: tosca.relationships.BelongsToOne
+```
+
+_For instructions on how to push TOSCA, please refer to this [guide](../../xos-tosca/README.md)_
+
+### Zero touch Subscriber provisioning
+
+This feature, also referred to as "bottom-up provisioning" enables autodiscovery of subscriber and their validation through an external OSS.
+
+Here is the expected workflow:
+
+- when an ONU is attached to the POD, VOLTHA will discover it and send an event to XOS
+- XOS receive the ONU activated events and through an OSS-Service query the upstream OSS to validate wether that ONU has a valid serial number
+- once the OSS has approved the ONU, XOS will create `ServiceInstance` chain for this particular subscriber and configure the POD to give him connectivity
+
+If you want to enable the "Zero touch provisioning" feature you'll need
+to deploy and configure some extra pieces in the system before attaching
+subscribers:
+
+**Kafka**
+
+To enable this feature XOS needs to receive events from `onos-voltha`
+so a kafka bus needs to be deployed.
+To deploy it please follow [this instructions](../../charts/kafka.md)
+
+**OSS Service**
+
+This is the piece of code that is responsible to enable the communication
+between CORD and you OSS Database.
+For reference we are providing a sample implemetation, available here:
+[hippie-oss](https://github.com/opencord/hippie-oss)
+
+_NOTE: this implementation will validate any subscriber that come online_
+
+To deploy the `hippie-oss` service you can look [here](../../charts/hippie-oss.md).
+
+Once the chart has come online, you'll need to add it to your service graph,
+and you can use this TOSCA for that:
+
+```yaml
+tosca_definitions_version: tosca_simple_yaml_1_0
+imports:
+  - custom_types/hippieossservice.yaml
+  - custom_types/servicedependency.yaml
+  - custom_types/voltservice.yaml
+description: Create an instance of the OSS Service and connect it to the vOLT Service
+topology_template:
+  node_templates:
+
+    # Reference the VOLTService
+    service#volt:
+      type: tosca.nodes.VOLTService
+      properties:
+        name: volt
+        must-exist: true
+
+    # Reference the HippieOSSService
+    service#oss:
+      type: tosca.nodes.HippieOSSService
+      properties:
+        name: hippie-oss
+        kind: oss
+
+    # Create a ServiceDependency between the two
+    service_dependency#oss_volt:
+      type: tosca.nodes.ServiceDependency
+      properties:
+        connect_method: None
+      requirements:
+        - subscriber_service:
+            node: service#oss
+            relationship: tosca.relationships.BelongsToOne
+        - provider_service:
+            node: service#volt
+            relationship: tosca.relationships.BelongsToOne
+```
+
+_For instructions on how to push TOSCA, please refer to this [guide](../../xos-tosca/README.md)_
+
+**Configure onos-voltha to connect to the Kafka bus**
+
+Copy this in a `kafka-config.json` file:
+
+```json
+{
+  "apps" : {
+    "org.opencord.olt" : {
+      "kafka" : {
+        "bootstrapServers" : "cord-kafka-kafka.default.svc.cluster.local:9092"
+      }
+    }
+  }
+}
+```
+
+Send this config to `onos-voltha` using this command:
+```shell
+curl --user karaf:karaf -X POST -H "Content-Type: application/json" --data-binary @kafka-config.json http://$node:$port/onos/v1/network/configuration/
+```
+
+To find out what ports `onos-voltha` is using, please refer to the [chart](../../charts/onos.md#onos-voltha).
diff --git a/profiles/rcord/install.md b/profiles/rcord/install.md
index 8855302..c73df05 100644
--- a/profiles/rcord/install.md
+++ b/profiles/rcord/install.md
@@ -2,10 +2,6 @@
 
 ## Prerequisites
 
-Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis veritatis
-eligendi vitae dolorem animi non unde odio, hic quasi totam recusandae repellat
-minima provident aliquam eveniet a tempora saepe. Iusto.
-
 - A Kubernetes cluster (you can follow one of this guide to install a [single
   node cluster](../../prereqs/k8s-single-node.md) or a [multi node
   cluster](../../prereqs/k8s-multi-node.md))
@@ -13,16 +9,11 @@
 
 ## CORD Components
 
-Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugit et quam tenetur
-maiores dolores ipsum hic ex doloremque, consectetur porro sequi vitae tempora
-in consequuntur provident nostrum nobis. Error, non?
-
-Then you need to install this charts:
+RCORD-Lite has dependencies on this charts, so they need to be installed first:
 
 - [xos-core](../../charts/xos-core.md)
 - [onos-fabric](../../charts/onos.md#onos-fabric)
 - [onos-voltha](../../charts/onos.md#onos-voltha)
-- kafka
 
 ## Install the RCORD-Lite helm chart
 
@@ -30,7 +21,10 @@
 helm install -n rcord-lite xos-profiles/rcord-lite
 ```
 
-### How to customize the RCORD-Lite helm chart
+Now that the your RCORD-Lite deployment is complete, please read this 
+to understand how to configure it: [Configure RCORD-Lite](configuration.md)
+
+## How to customize the RCORD-Lite helm chart
 
 Define a `my-rcord-lite-values.yaml` that looks like:
 
diff --git a/profiles/rcord/setup.md b/profiles/rcord/setup.md
deleted file mode 100644
index c5dd3fe..0000000
--- a/profiles/rcord/setup.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# RCORD POD Configuration
-
-Coming soon