|
1 | 1 | module sonic-extensions {
|
2 | 2 |
|
3 |
| - yang-version "1"; |
| 3 | + yang-version "1"; |
4 | 4 |
|
5 |
| - // namespace |
6 |
| - namespace "http://openconfig.net/yang/sonic-ext"; |
| 5 | + // namespace |
| 6 | + namespace "http://openconfig.net/yang/sonic-ext"; |
7 | 7 |
|
8 |
| - prefix "sonic-ext"; |
| 8 | + prefix "sonic-ext"; |
9 | 9 |
|
10 |
| - // meta |
11 |
| - organization "Sonic working group"; |
| 10 | + // meta |
| 11 | + organization "Sonic working group"; |
12 | 12 |
|
13 |
| - contact |
14 |
| - "OpenConfig working group |
15 |
| - www.openconfig.net"; |
| 13 | + contact |
| 14 | + "OpenConfig working group |
| 15 | + www.openconfig.net"; |
16 | 16 |
|
17 |
| - description |
18 |
| - "This module provides extensions to the YANG language to allow |
19 |
| - Sonic specific functionality and meta-data to be defined."; |
20 |
| - |
21 |
| - revision "2019-08-30" { |
22 |
| - description |
23 |
| - "Add extensions for redis DB mappings to identify the Redis DB name."; |
24 |
| - } |
25 |
| - |
26 |
| - revision "2019-07-26" { |
27 | 17 | description
|
28 |
| - "Add extensionis for redis DB mappings for table, table-keys, table-fields and corresponding transformer methods."; |
29 |
| - } |
30 |
| - |
31 |
| - |
32 |
| - // extension statements |
33 |
| - extension table-name { |
34 |
| - argument "table-name"; |
35 |
| - description "Db table name."; |
36 |
| - } |
37 |
| - |
38 |
| - extension key-transformer { |
39 |
| - argument "key-transformer-name"; |
40 |
| - description "Db table key transformer name indicating that the list keys together form db table keys."; |
41 |
| - } |
42 |
| - |
43 |
| - extension key-delimiter { |
44 |
| - argument "key-delimiter-string"; |
45 |
| - description "Db table key values delimiter."; |
46 |
| - } |
47 |
| - |
48 |
| - extension field-name { |
49 |
| - argument "field-name"; |
50 |
| - description "Db table field name."; |
51 |
| - } |
52 |
| - |
53 |
| - extension field-transformer { |
54 |
| - argument "field-transformer-name"; |
55 |
| - description "Db table field transformer name.This can be applied to either transform yang value to some different format |
56 |
| - or choose a specific DB field based on the type of yang value."; |
57 |
| - } |
58 |
| - |
59 |
| - extension subtree-transformer { |
60 |
| - argument "subtree-transformer-name"; |
61 |
| - description "Subtree/node level transformer name that will have db mappings for an entire yang subtree."; |
62 |
| - } |
63 |
| - |
64 |
| - extension post-transformer { |
65 |
| - argument "post-transformer-name"; |
66 |
| - description "Transformer name that will perform post-translation tasks."; |
67 |
| - } |
68 |
| - |
69 |
| - extension get-validate { |
70 |
| - argument "get-validate-name"; |
71 |
| - description "Validation callpoint used to validate a YANG node during data translation back to YANG as a response to GET."; |
72 |
| - } |
73 |
| - |
74 |
| - extension redis-db-name { |
75 |
| - argument "db-name"; |
76 |
| - description "DB name that will indicate where data is stored. Eg: Config DB, App DB etc"; |
77 |
| - } |
78 |
| - extension table-transformer { |
79 |
| - argument "table-transformer-name"; |
80 |
| - description "Db table transformer name.This can be applied to either transform yang value to some different format |
81 |
| - or choose a specific DB table based on the type."; |
82 |
| - } |
| 18 | + "This module provides extensions to the YANG language to allow |
| 19 | + Sonic specific functionality and meta-data to be defined."; |
| 20 | + |
| 21 | + revision "2019-08-30" { |
| 22 | + description |
| 23 | + "Add extensions for redis DB mappings to identify the Redis DB name."; |
| 24 | + } |
| 25 | + |
| 26 | + revision "2019-07-26" { |
| 27 | + description |
| 28 | + "Add extensionis for redis DB mappings for table, table-keys, table-fields and corresponding transformer methods."; |
| 29 | + } |
| 30 | + |
| 31 | + |
| 32 | + // extension statements |
| 33 | + extension table-name { |
| 34 | + argument "table-name"; |
| 35 | + description "Db table name."; |
| 36 | + } |
| 37 | + |
| 38 | + extension key-transformer { |
| 39 | + argument "key-transformer-name"; |
| 40 | + description "Db table key transformer name indicating that the list keys together form db table keys."; |
| 41 | + } |
| 42 | + |
| 43 | + extension key-delimiter { |
| 44 | + argument "key-delimiter-string"; |
| 45 | + description "Db table key values delimiter."; |
| 46 | + } |
| 47 | + |
| 48 | + extension field-name { |
| 49 | + argument "field-name"; |
| 50 | + description "Db table field name."; |
| 51 | + } |
| 52 | + |
| 53 | + extension field-transformer { |
| 54 | + argument "field-transformer-name"; |
| 55 | + description "Db table field transformer name.This can be applied to either transform yang value to some different format |
| 56 | + or choose a specific DB field based on the type of yang value."; |
| 57 | + } |
| 58 | + |
| 59 | + extension subtree-transformer { |
| 60 | + argument "subtree-transformer-name"; |
| 61 | + description "Subtree/node level transformer name that will have db mappings for an entire yang subtree."; |
| 62 | + } |
| 63 | + |
| 64 | + extension post-transformer { |
| 65 | + argument "post-transformer-name"; |
| 66 | + description "Transformer name that will perform post-translation tasks."; |
| 67 | + } |
| 68 | + |
| 69 | + extension get-validate { |
| 70 | + argument "get-validate-name"; |
| 71 | + description "Validation callpoint used to validate a YANG node during data translation back to YANG as a response to GET."; |
| 72 | + } |
| 73 | + |
| 74 | + extension redis-db-name { |
| 75 | + argument "db-name"; |
| 76 | + description "DB name that will indicate where data is stored. Eg: Config DB, App DB etc"; |
| 77 | + } |
| 78 | + extension table-transformer { |
| 79 | + argument "table-transformer-name"; |
| 80 | + description "Db table transformer name.This can be applied to either transform yang value to some different format |
| 81 | + or choose a specific DB table based on the type."; |
| 82 | + } |
83 | 83 | }
|
0 commit comments