JSON fix
diff --git a/xos/onboard/fabric/synchronizer/steps/sync_host.yaml b/xos/onboard/fabric/synchronizer/steps/sync_host.yaml
index 58bccba..3daafdd 100644
--- a/xos/onboard/fabric/synchronizer/steps/sync_host.yaml
+++ b/xos/onboard/fabric/synchronizer/steps/sync_host.yaml
@@ -13,8 +13,8 @@
- name: Call Fabric REST API
uri:
url: http://{{ '{{' }} rest_hostname {{ '}}' }}:{{ '{{' }} rest_port {{ '}}' }}/{{ '{{' }} rest_endpoint {{ '}}' }} #http://localhost:8181/onos/v1/network/configuration/
- body: "{{ '{{' }} rest_json {{ '}}' }}"
- body_format: raw
+ body: "{{ '{{' }} rest_json | to_json {{ '}}' }}"
+ body_format: json
method: POST
user: karaf
password: karaf
diff --git a/xos/onboard/onos/synchronizer/steps/sync_onosapp_nocontainer.yaml b/xos/onboard/onos/synchronizer/steps/sync_onosapp_nocontainer.yaml
index c868d68..4f0c14c 100644
--- a/xos/onboard/onos/synchronizer/steps/sync_onosapp_nocontainer.yaml
+++ b/xos/onboard/onos/synchronizer/steps/sync_onosapp_nocontainer.yaml
@@ -33,8 +33,8 @@
- name: Install ONOS apps by URL
uri:
url: http://{{ '{{' }} rest_hostname {{ '}}' }}:{{ '{{' }} rest_port {{ '}}' }}/{{ '{{' }} item.endpoint {{ '}}' }} #http://localhost:8181/onos/v1/network/configuration/
- body: "{{ '{{' }} item.body {{ '}}' }}"
- body_format: raw
+ body: "{{ '{{' }} item.body | to_json {{ '}}' }}"
+ body_format: json
method: POST
user: karaf
password: karaf