Merge "Revert "Functional spec for cloud-init support""
[osm/SO.git] / rwlaunchpad / plugins / yang / CMakeLists.txt
1
2 #   Copyright 2016 RIFT.IO Inc
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 "AS IS" 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 # Author(s): Tom Seidenberg
17 # Creation Date: 2014/04/08
18
19
20 set(source_yang_files
21   rw-launchpad.yang
22   rw-monitor.yang
23   rw-nsm.yang
24   rw-resource-mgr.yang
25   rw-vnfm.yang
26   rw-vns.yang
27   rw-image-mgmt.yang
28   )
29
30 ##
31 # Yang targets
32 ##
33 rift_generate_python_log_yang(
34     LOG_CATEGORY_NAME rw-mano-log
35     START_EVENT_ID 65000
36     OUT_YANG_FILE_VAR rw_mano_log_file
37     )
38
39 rift_generate_python_log_yang(
40     LOG_CATEGORY_NAME rw-monitor-log
41     START_EVENT_ID 64000
42     OUT_YANG_FILE_VAR rw_monitor_log_file
43     )
44
45 rift_generate_python_log_yang(
46     LOG_CATEGORY_NAME rw-mon-params-log
47     START_EVENT_ID 67000
48     OUT_YANG_FILE_VAR rw_mon_params_log_file
49     )
50
51 rift_generate_python_log_yang(
52     LOG_CATEGORY_NAME rw-resource-mgr-log
53     START_EVENT_ID 69000
54     OUT_YANG_FILE_VAR rw_resource_mgr_log_file
55     )
56
57 rift_add_yang_target(
58   TARGET rwlaunchpad_yang
59   YANG_FILES
60     ${source_yang_files}
61     ${rw_mano_log_file}
62     ${rw_monitor_log_file}
63     ${rw_mon_params_log_file}
64     ${rw_resource_mgr_log_file}
65   COMPONENT ${PKG_LONG_NAME}
66   LIBRARIES
67     mano_yang_gen
68     rwcloud_yang_gen
69     rw_conman_yang_gen
70     rwconfig_agent_yang_gen
71     mano-types_yang_gen
72   DEPENDS
73     mano_yang
74     rwcloud_yang
75     rw_conman_yang
76     rwconfig_agent_yang
77     mano-types_yang
78 )
79