]>
Commit | Line | Data |
---|---|---|
1c2facd1 RW |
1 | module frr-module-translator { |
2 | yang-version 1.1; | |
3 | namespace "http://frrouting.org/yang/frr-module-translator"; | |
4 | prefix frr-module-translator; | |
5 | ||
6 | organization | |
7 | "Free Range Routing"; | |
8 | contact | |
9 | "FRR Users List: <mailto:frog@lists.frrouting.org> | |
10 | FRR Development List: <mailto:dev@lists.frrouting.org>"; | |
11 | description | |
12 | "A model for FRR YANG module translators."; | |
13 | ||
14 | revision 2018-07-31 { | |
15 | description | |
16 | "Initial revision."; | |
17 | } | |
18 | ||
19 | container frr-module-translator { | |
20 | leaf family { | |
21 | type string { | |
22 | length "0 .. 32"; | |
23 | } | |
24 | mandatory true; | |
25 | description | |
26 | "Family of YANG models."; | |
27 | } | |
28 | list module { | |
29 | key "name"; | |
30 | ordered-by user; | |
31 | description | |
32 | "YANG module."; | |
33 | ||
34 | leaf name { | |
35 | type string; | |
36 | description | |
37 | "Module name."; | |
38 | } | |
39 | leaf deviations { | |
40 | type string; | |
41 | mandatory true; | |
42 | description | |
43 | "Module containing the YANG deviations."; | |
44 | } | |
45 | list mappings { | |
46 | key "custom"; | |
47 | description | |
48 | "YANG mappings between the custom module and FRR native modules."; | |
49 | ||
50 | leaf custom { | |
51 | type string { | |
52 | length "0 .. 256"; | |
53 | } | |
54 | description | |
55 | "YANG path of the custom module."; | |
56 | } | |
57 | leaf native { | |
58 | type string { | |
59 | length "0 .. 256"; | |
60 | } | |
61 | mandatory true; | |
62 | description | |
63 | "Corresponding path of the native YANG modules"; | |
64 | } | |
65 | } | |
66 | } | |
67 | } | |
68 | } |