File: plugin.yang

package info (click to toggle)
sysrepo 3.7.11-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 6,720 kB
  • sloc: ansic: 85,593; sh: 145; makefile: 29
file content (166 lines) | stat: -rw-r--r-- 4,852 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
module plugin {
    yang-version 1.1;
    namespace s;
    prefix s;

    container simple-cont {

        container simple-cont1 {
            presence "This is an example of a presence container.";
        }

        container simple-cont2 {
            container ac1 {
                list acl1 {
                    key acs1;
                    leaf acs1 {
                        type string;
                    }
                    leaf acs2 {
                        type string;
                    }
                    leaf acs3 {
                        type string;
                    }
                    container inner {
                        leaf inner-leaf {
                            type string;
                        }
                    }
                    anydata data;
                }

                list acl2 {
                    key acs1;
                    ordered-by user;
                    leaf acs1 {
                        type string;
                    }
                }

                list acl3 {
                    key "acs1 acs2 acs3";
                    ordered-by user;
                    leaf acs1 {
                        type string;
                    }
                    leaf acs2 {
                        type string;
                    }
                    leaf acs3 {
                        type string;
                    }
                    container inner {
                        leaf inner-leaf {
                            type string;
                        }
                    }
                }

                list acl4 {
                    config false;
                    leaf acs1 {
                        type string;
                    }
                    leaf acs2 {
                        type string;
                    }
                    description
                        "Keyless list.";
                }

                list acl5 {
                    key "acs1 acs2 acs3";
                    leaf acs1 {
                        type string;
                    }
                    leaf acs2 {
                        type string;
                    }
                    leaf acs3 {
                        type string;
                    }
                }

                leaf-list dup-keys {
                    config false;
                    type string;
                    description
                        "Leaf-list with duplicate keys.";
                }
            }
        }

        container simple-cont3 {
            leaf-list user-list {
                type string;
                ordered-by user;
                description
                    "User ordered list.";
            }
            anyxml data;
        }

        container simple-cont4 {
            presence "Do not include empty containers from this container by default.";

            leaf leaf-prefix {
                description "Deletion of this leaf should not impact leaf-prefix2.";
                type string;
            }

            leaf leaf-prefix2 {
                description "I should not be impacted by leaf-prefix.";
                type string;
            }

            container prefix {
                presence "Do not include empty containers from this container by default.";
                description "Deletion of this container should not impact prefix2.";
                leaf l {
                    type string;
                }
            }

            container prefix2 {
                presence "Do not include empty containers from this container by default.";
                description "I should not be impacted by prefix.";
                leaf l {
                    type string;
                }
            }

            container state-prefix {
                presence "Do not include empty containers from this container by default.";
                description "Deletion of this container should not impact state-prefix2.";
                config false;
                leaf l {
                    type string;
                }
            }

            container state-prefix2 {
                presence "Do not include empty containers from this container by default.";
                description "I should not be impacted by state-prefix.";
                config false;
                leaf l {
                    type string;
                }
            }
        }

        container simple-cont5 {
            leaf-list user-list {
                type string;
                ordered-by user;
                description
                    "User ordered list 2.";
            }
            leaf-list system-list {
                type string;
                description
                    "System ordered list.";
            }
        }
    }
}