blob: 5aebcda731946fb08f68cd1352b73fe1e550b2b8 [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 -->
16<scenario name="yang-lve-compile" description="Live YANG compilation">
17 <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"/>
22 <step name="Compile-YANG-Model" exec="onos-compile-yang ${OC1} ${ONOS_ROOT}/models/l3vpn"
23 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>