Gaurav Agrawal | be2b331 | 2016-08-17 18:58:17 +0530 | [diff] [blame] | 1 | module Testmodule { |
| 2 | yang-version 1; |
| 3 | namespace http://huawei.com; |
| 4 | prefix Ant; |
| 5 | container testcontainer { |
| 6 | leaf testleaf { |
| 7 | type "uint16"; |
| 8 | } |
| 9 | choice snack { |
| 10 | case sports-arena { |
| 11 | leaf pretzel { |
| 12 | type empty; |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | } |
Gaurav Agrawal | 61edaa0 | 2016-08-31 16:52:56 +0530 | [diff] [blame] | 17 | notification testnotification1 { |
| 18 | leaf type { |
| 19 | type string; |
| 20 | } |
| 21 | leaf severity { |
| 22 | type string; |
| 23 | } |
| 24 | } |
Gaurav Agrawal | 7a3a2f5 | 2016-09-03 11:14:27 +0530 | [diff] [blame] | 25 | |
| 26 | rpc activate-software-image { |
| 27 | description "description"; |
| 28 | input { |
| 29 | leaf image-name { |
| 30 | type string; |
| 31 | } |
| 32 | list ospf { |
| 33 | key "invalid-interval"; |
| 34 | config true; |
| 35 | max-elements 10; |
| 36 | min-elements 3; |
| 37 | leaf invalid-interval { |
| 38 | type uint16; |
| 39 | } |
| 40 | } |
| 41 | container isis { |
| 42 | config true; |
| 43 | leaf invalid-interval { |
| 44 | type uint16; |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | output { |
| 49 | leaf image-name { |
| 50 | type string; |
| 51 | } |
| 52 | leaf image-value { |
| 53 | type string; |
| 54 | } |
| 55 | } |
| 56 | } |
Gaurav Agrawal | be2b331 | 2016-08-17 18:58:17 +0530 | [diff] [blame] | 57 | } |