blob: 1b764d21f5e4fad656c03fd4d3d8ed05560d17b7 [file] [log] [blame]
lombardoffb37bca2018-05-03 16:20:04 +02001#
2# Copyright 2017 CNIT - Consorzio Nazionale Interuniversitario per le Telecomunicazioni
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17import json
18import pyaml
19import yaml
20from lib.util import Util
21import logging
22import traceback
23import glob
24import os
25
26
27class Parser(object):
28 """Parser methods base class
29
30 """
31
32 def __init__(self):
33 pass
34
35 @classmethod
36 def importprojectdir(cls,dir_project, type):
37 """Imports all files under a given folder
38
39 Returns an empty project
40 """
41
42 project = {}
43 return project
44
45 def get_all_ns_descriptors(self, nsd_id, project_data):
46 raise NotImplementedError