Add code logic of tosca parser 67/7567/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Tue, 15 Aug 2017 07:55:47 +0000 (15:55 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Tue, 15 Aug 2017 07:56:56 +0000 (15:56 +0800)
In ONAP R1, VFC project will use nfv tosca parser
to parse csar package, init the directory and
file at the first time.

Change-Id: I826c8f485e0254832ca3b5b4d2808410eb5b7687
Issue-ID: VFC-97
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
.gitignore
lcm/pub/utils/toscaparser/__init__.py [new file with mode: 0644]
lcm/pub/utils/toscaparser/convert.py [new file with mode: 0644]
lcm/pub/utils/toscaparser/parser.py [new file with mode: 0644]

index 821f62a..67c551b 100644 (file)
@@ -1,2 +1,3 @@
 logs/*.log
-*.pyc
\ No newline at end of file
+*.pyc
+.idea
\ No newline at end of file
diff --git a/lcm/pub/utils/toscaparser/__init__.py b/lcm/pub/utils/toscaparser/__init__.py
new file mode 100644 (file)
index 0000000..a2564f7
--- /dev/null
@@ -0,0 +1,19 @@
+# Copyright 2017 ZTE Corporation.
+#
+# 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.
+
+def parse_nsd(path, input_parameters=[]):
+    pass
+
+def parse_vnfd(path, input_parameters=[]):
+    pass
\ No newline at end of file
diff --git a/lcm/pub/utils/toscaparser/convert.py b/lcm/pub/utils/toscaparser/convert.py
new file mode 100644 (file)
index 0000000..5399fe6
--- /dev/null
@@ -0,0 +1,13 @@
+# Copyright 2017 ZTE Corporation.\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+#         http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
diff --git a/lcm/pub/utils/toscaparser/parser.py b/lcm/pub/utils/toscaparser/parser.py
new file mode 100644 (file)
index 0000000..5399fe6
--- /dev/null
@@ -0,0 +1,13 @@
+# Copyright 2017 ZTE Corporation.\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+#         http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r