blob: 3975a5e23cc5bd6a266b26c55661034616896111 [file] [log] [blame]
Thomas Vachuskaed1c8632017-08-09 15:40:07 -07001<!--
2 ~ Copyright 2017-present Open Networking Foundation
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 -->
Thomas Vachuska08b4dec2017-08-31 15:20:17 -070016<scenario name="yang-live-compile" description="Live YANG compilation">
Thomas Vachuskaed1c8632017-08-09 15:40:07 -070017 <group name="YANG-Live-Compile">
18 <step name="Activate-YANG-Runtime" exec="onos ${OC1} app activate org.onosproject.yang"/>
19 <step name="Pre-Cleanup-YANG-Model" exec="onos ${OC1} app uninstall l3vpn" env="~"/>
Sean Condonbf7ff4f2019-03-17 16:18:42 +000020 <step name="Check-YANG-Runtime" exec="onos-check-apps ${OC1} gui,drivers,yang includes"
Thomas Vachuskaed1c8632017-08-09 15:40:07 -070021 requires="Activate-YANG-Runtime"/>
Thomas Vachuskae662d672017-08-15 10:14:58 -070022 <step name="Compile-YANG-Model" exec="onos-compile-yang ${OC1} ${ONOS_ROOT}/tools/test/configs/yang"
Thomas Vachuskaed1c8632017-08-09 15:40:07 -070023 requires="Check-YANG-Runtime,Pre-Cleanup-YANG-Model"/>
Thomas Vachuska4d9051e2017-09-06 13:34:05 -070024
25 <group name="Verify-YANG-Models" requires="Compile-YANG-Model">
26 <parallel var="${OC#}">
27 <step name="Verify-Model-Registration-${#}"
28 exec="onos ${OC#} models | grep l3vpn"/>
29 <step name="Verify-Model-Component-${#}"
30 exec="onos-check-component ${OC#} yang.YangModelRegistrator ACTIVE"/>
31 <step name="Verify-YANG-Apps-${#}"
Sean Condonbf7ff4f2019-03-17 16:18:42 +000032 exec="onos-check-apps ${OC#} gui,drivers,yang,l3vpn includes"/>
Thomas Vachuska4d9051e2017-09-06 13:34:05 -070033 </parallel>
34 </group>
35
Thomas Vachuskaed1c8632017-08-09 15:40:07 -070036 <step name="Cleanup-YANG-Model" exec="onos ${OC1} app uninstall l3vpn"
Thomas Vachuska4d9051e2017-09-06 13:34:05 -070037 requires="Verify-YANG-Models"/>
Thomas Vachuskaed1c8632017-08-09 15:40:07 -070038 </group>
39</scenario>