CORD-2100 Fix component config not synced

Change-Id: Ifedbedde2c721253e3b82db102364396a6a86dc0
(cherry picked from commit d52fe7c6d9465fb2a67d89131a8d0ddc840b150c)
diff --git a/xos/synchronizer/steps/sync_onosapp.py b/xos/synchronizer/steps/sync_onosapp.py
index fe10d6c..3471c36 100644
--- a/xos/synchronizer/steps/sync_onosapp.py
+++ b/xos/synchronizer/steps/sync_onosapp.py
@@ -207,6 +207,7 @@
         fields["files_dir"] = o.files_dir
         fields["appname"] = o.name
         fields["rest_configs"] = o.rest_configs
+        fields["component_configs"] = o.component_configs
         fields["rest_hostname"] = onos.rest_hostname
         fields["rest_port"] = onos.rest_port
 
@@ -229,7 +230,6 @@
 
         fields["config_fns"] = o.config_fns
         fields["early_rest_configs"] = o.early_rest_configs
-        fields["component_configs"] = o.component_configs
         fields["node_key_fn"] = o.node_key_fn
 
         if (instance.isolation=="container"):
diff --git a/xos/synchronizer/steps/sync_onosapp_nocontainer.yaml b/xos/synchronizer/steps/sync_onosapp_nocontainer.yaml
index eaa687c..68c5f62 100644
--- a/xos/synchronizer/steps/sync_onosapp_nocontainer.yaml
+++ b/xos/synchronizer/steps/sync_onosapp_nocontainer.yaml
@@ -70,6 +70,18 @@
         {% endfor %}
 {% endif %}
 
+{% if component_configs %}
+  - name: Add ONOS component configuration values
+    uri:
+      url: http://{{ rest_hostname }}:{{ rest_port }}/onos/v1/configuration/{{ '{{' }} item.component {{ '}}' }} #http://localhost:8181/onos/v1/configuration/
+      body: "{{ '{{' }} item.config_params {{ '}}' }}"
+      body_format: json
+      method: POST
+      user: karaf
+      password: karaf
+    with_items: "{{ '{{' }} component_configs {{ '}}' }}"
+{% endif %}
+
 {% if rest_configs %}
 # Do this after services have been activated, or it will cause an exception.
 # vOLT will re-read its net config; vbng may not.