Thomas Vachuska | ed1c863 | 2017-08-09 15:40:07 -0700 | [diff] [blame] | 1 | <!-- |
| 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 Vachuska | 08b4dec | 2017-08-31 15:20:17 -0700 | [diff] [blame] | 16 | <scenario name="yang-live-compile" description="Live YANG compilation"> |
Thomas Vachuska | ed1c863 | 2017-08-09 15:40:07 -0700 | [diff] [blame] | 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"/> |
Thomas Vachuska | e662d67 | 2017-08-15 10:14:58 -0700 | [diff] [blame] | 22 | <step name="Compile-YANG-Model" exec="onos-compile-yang ${OC1} ${ONOS_ROOT}/tools/test/configs/yang" |
Thomas Vachuska | ed1c863 | 2017-08-09 15:40:07 -0700 | [diff] [blame] | 23 | requires="Check-YANG-Runtime,Pre-Cleanup-YANG-Model"/> |
Thomas Vachuska | 4d9051e | 2017-09-06 13:34:05 -0700 | [diff] [blame] | 24 | |
| 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-${#}" |
| 32 | exec="onos-check-apps ${OC#} drivers,yang,l3vpn includes"/> |
| 33 | </parallel> |
| 34 | </group> |
| 35 | |
Thomas Vachuska | ed1c863 | 2017-08-09 15:40:07 -0700 | [diff] [blame] | 36 | <step name="Cleanup-YANG-Model" exec="onos ${OC1} app uninstall l3vpn" |
Thomas Vachuska | 4d9051e | 2017-09-06 13:34:05 -0700 | [diff] [blame] | 37 | requires="Verify-YANG-Models"/> |
Thomas Vachuska | ed1c863 | 2017-08-09 15:40:07 -0700 | [diff] [blame] | 38 | </group> |
| 39 | </scenario> |