blob: c87c4fcf4c3d26de911fb8b1bc6f683ae514098e [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="~"/>
20 <step name="Check-YANG-Runtime" exec="onos-check-apps ${OC1} drivers,yang includes"
21 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"/>
24 <step name="Verify-YANG-Models" exec="onos ${OC1} models | grep l3vpn"
25 requires="Compile-YANG-Model"/>
26 <step name="Verify-YANG-Apps" exec="onos-check-apps ${OC1} drivers,yang,l3vpn includes"
27 requires="Compile-YANG-Model"/>
28 <step name="Cleanup-YANG-Model" exec="onos ${OC1} app uninstall l3vpn"
29 requires="Verify-YANG-Apps"/>
30 </group>
31</scenario>