CORD-2461 Fix loading ONOS netcfg via TOSCA
Change-Id: I2c94fadf47f36fc016cf5258e3aab26c8875389e
diff --git a/mcord-cavium.yml b/mcord-cavium.yml
index 9609759..4f5567c 100644
--- a/mcord-cavium.yml
+++ b/mcord-cavium.yml
@@ -40,9 +40,6 @@
- xos-gui-extensions.yml
- service-graph-constraints.yaml
-xos_other_templates:
- - fabric-network-cfg.json
-
# GUI Config [new GUI]
gui_project_name: "M-CORD"
gui_background: "cord-bg.jpg" # TODO find mcord image
diff --git a/mcord-ng40.yml b/mcord-ng40.yml
index bab2eb9..e0f1bac 100644
--- a/mcord-ng40.yml
+++ b/mcord-ng40.yml
@@ -40,9 +40,6 @@
- xos-gui-extensions.yml
- service-graph-constraints.yaml
-xos_other_templates:
- - fabric-network-cfg.json
-
# GUI Config [new GUI]
gui_project_name: "M-CORD"
gui_background: "cord-bg.jpg" # TODO find mcord image
diff --git a/templates/fabric-network-cfg.json.j2 b/templates/fabric-network-cfg.json.j2
deleted file mode 100644
index 853c7e9..0000000
--- a/templates/fabric-network-cfg.json.j2
+++ /dev/null
@@ -1,19 +0,0 @@
-
-{#
-Copyright 2017-present Open Networking Foundation
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-#}
-
-
-{}
\ No newline at end of file
diff --git a/templates/fabric-service.yaml.j2 b/templates/fabric-service.yaml.j2
index e28d5ea..a52987d 100644
--- a/templates/fabric-service.yaml.j2
+++ b/templates/fabric-service.yaml.j2
@@ -25,7 +25,7 @@
- custom_types/onosapp.yaml
- custom_types/serviceinstancelink.yaml
-description: fabric services, generated by platform-install
+description: fabric services, generated by mcord profile
topology_template:
node_templates:
@@ -45,8 +45,8 @@
node: service#ONOS_Fabric
relationship: tosca.relationships.BelongsToOne
properties:
- name: fabric_network_cfg_json
- value: {{ fabric_network_cfg_json }}
+ name: rest_onos/v1/network/configuration/
+ value: '{{ fabric_network_cfg_json | to_json }}'
service#fabric:
type: tosca.nodes.FabricService