blob: d4c00c7d18b825b57f529d4534c0bafe8b361dd1 [file] [log] [blame]
Gaurav Agrawalbe2b3312016-08-17 18:58:17 +05301module 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 Agrawal61edaa02016-08-31 16:52:56 +053017 notification testnotification1 {
18 leaf type {
19 type string;
20 }
21 leaf severity {
22 type string;
23 }
24 }
Gaurav Agrawal7a3a2f52016-09-03 11:14:27 +053025
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 Agrawalbe2b3312016-08-17 18:58:17 +053057}