diff options
Diffstat (limited to 'components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates')
4 files changed, 228 insertions, 0 deletions
diff --git a/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/netconfrpc-mapping.json b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/netconfrpc-mapping.json new file mode 100644 index 000000000..2ef877fb6 --- /dev/null +++ b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/netconfrpc-mapping.json @@ -0,0 +1,92 @@ +[ + { + "name": "pnf-id", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "pnf-id", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "pnf-ipv4-address", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "pnf-ipv4-address", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "stream-count", + "property": { + "description": "", + "required": true, + "type": "integer", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "stream-count", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "netconf-password", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "netconf-password", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "netconf-username", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "netconf-username", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + } + ]
\ No newline at end of file diff --git a/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/netconfrpc-template.vtl b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/netconfrpc-template.vtl new file mode 100644 index 000000000..a9229b5c2 --- /dev/null +++ b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/netconfrpc-template.vtl @@ -0,0 +1,19 @@ +<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> + <edit-config> + <target> + <running/> + </target> + <config> + <sample-plugin xmlns="urn:opendaylight:params:xml:ns:yang:sample-plugin"> + <pg-streams> + #foreach($i in [1..${stream-count.asInt()}]) + <pg-stream> + <id>fw_udp_$i</id> + <is-enabled>true</is-enabled> + </pg-stream> + #end + </pg-streams> + </sample-plugin> + </config> + </edit-config> +</rpc> diff --git a/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/pnf-mapping.json b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/pnf-mapping.json new file mode 100644 index 000000000..2121987b8 --- /dev/null +++ b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/pnf-mapping.json @@ -0,0 +1,109 @@ +[{ + "name": "pnf-id", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "pnf-id", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "pnf-ipv4-address", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "pnf-ipv4-address", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "netconf-password", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "netconf-password", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "netconf-username", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "netconf-username", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "netconf-server-port", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "netconf-server-port", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "stream-count", + "property": { + "description": "", + "required": true, + "type": "string", + "status": "", + "constraints": [{}], + "entry_schema": { + "type": "" + } + }, + "input-param": true, + "dictionary-name": "stream-count", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + } +] diff --git a/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/pnf-template.vtl b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/pnf-template.vtl new file mode 100644 index 000000000..254929e83 --- /dev/null +++ b/components/model-catalog/blueprint-model/service-blueprint/PNF_DEMO/Templates/pnf-template.vtl @@ -0,0 +1,8 @@ +{ + "pnf-id" : "${pnf-id}", + "pnf-ipv4-address" : "${pnf-ipv4-address}", + "netconf-password" : "${netconf-password}", + "netconf-username" : "${netconf-username}", + "netconf-server-port" : "${netconf-server-port}", + "stream-count" : "${stream-count}" +} |