vpp-acl-context@2017-01-04.yang revision 718e9a3c
1module vpp-acl-context {
2    yang-version 1;
3    namespace "http://fd.io/hc2vpp/yang/vpp/acl/context";
4    prefix "vac";
5
6    import naming-context {
7        prefix "nc";
8    }
9
10    import yang-ext {
11        prefix "ext";
12    }
13
14    organization
15        "FD.io - The Fast Data Project";
16
17    contact
18        "Hc2vpp Wiki <https://wiki.fd.io/view/Hc2vpp>
19         Mailing List <hc2vpp@lists.fd.io>";
20
21    description
22        "This module provides mapping between ACL identifiers
23         defined in the ietf-access-control-list module
24         and identifiers used by the VPP ACL plugin.
25
26         The mapping is managed internally by the HC ACL plugin.
27         It is exposed as operational state data for debugging purposes.
28
29         Copyright (c) 2017 Cisco and/or its affiliates.
30
31         Licensed under the Apache License, Version 2.0 (the 'License');
32         you may not use this file except in compliance with the License.
33         You may obtain a copy of the License at:
34
35         http://www.apache.org/licenses/LICENSE-2.0
36
37         Unless required by applicable law or agreed to in writing, software
38         distributed under the License is distributed on an 'AS IS' BASIS,
39         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40         See the License for the specific language governing permissions and
41         limitations under the License.";
42
43    revision "2017-01-04" {
44        description "Initial revision.";
45    }
46
47    grouping vpp-acl-context-attributes {
48        container vpp-acl-mappings {
49            list vpp-acl-context {
50
51                key "name";
52
53                leaf name {
54                    type string;
55                    description "vpp-acl context name";
56                }
57
58                list acl-mapping {
59                    key "name";
60
61                    leaf name {
62                        type string;
63                        description "ACL name";
64                    }
65
66                    leaf index {
67                        type int32;
68                        description "ACL index";
69                    }
70
71                    list ace-mapping {
72                        key "name";
73
74                        leaf name {
75                            type string;
76                            description "ACEs name";
77                        }
78
79                        leaf index {
80                            type int32;
81                            description "ACE index";
82                        }
83                    }
84                }
85            }
86        }
87    }
88
89    augment /nc:contexts {
90        ext:augment-identifier "vpp-acl-context-augmentation";
91        uses vpp-acl-context-attributes;
92    }
93}