blob: 602b9113568eac7f521f04de871fa5b83d141b47 [file] [log] [blame]
sonu guptaeff184b2016-11-24 12:43:49 +05301module crypto-base {
2
3 yang-version 1;
4
5 namespace "ydt.crypto-base";
6
7 prefix "crypto";
8
9 organization "ON-LAB";
10
11 description "This module defines for crypto-base classifier.";
12
13 revision "2016-05-24" {
14 description "Initial revision.";
15 }
16
17 identity crypto-alg {
18 description
19 "Base identity from which all crypto algorithms
20 are derived.";
21 }
22
23 identity crypto-alg2 {
24 base crypto-alg;
25 }
26
27 identity crypto-alg3 {
28 base crypto-alg2;
29 }
30
31 leaf crypto {
32 type identityref {
33 base "crypto-alg";
34 }
35 }
36
37 typedef abc {
38 type identityref {
39 base "crypto-alg";
40 }
41 }
42
43 leaf-list abc-type {
44 type abc;
45 }
46
47 leaf abc-zeunion {
48 type union {
49 type identityref {
50 base "crypto-alg";
51 }
52 type abc;
53 }
54 }
55
56 leaf level2 {
57 type identityref {
58 base "crypto-alg2";
59 }
60 }
61
62 leaf level3 {
63 type identityref {
64 base "crypto-alg3";
65 }
66 }
67
68 leaf level4 {
69 type union {
70 type identityref {
71 base "crypto-alg3";
72 }
73 type abc;
74 }
75 }
76}