HONEYCOMB-58 - Routing Api
[honeycomb.git] / v3po / api / src / main / yang / ietf-acl-context.yang
1 module ietf-acl-context {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:vpp:acl:context";
4     prefix "nc";
5
6     description "Context for nat mapping";
7
8     revision "2016-12-14" {
9         description "Initial revision.";
10     }
11
12     import ietf-inet-types {
13        prefix "inet";
14     }
15
16     import naming-context {
17        prefix "nc";
18     }
19
20     import yang-ext {
21        prefix "ext";
22     }
23
24     grouping mapping-entry-context-attributes {
25         container acl-mapping-entry-context {
26             list mapping-table {
27                 key "direction";
28
29                 leaf direction {
30                     type enumeration {
31                         enum "ingress";
32                         enum "egress";
33                     }
34                 }
35
36                 list mapping-entry {
37                     key "index";
38
39                     leaf index {
40                         type int32;
41                         description "interface id";
42                     }
43
44                     leaf ip4_table_id {
45                         type int32;
46                         description "ip4 table id";
47                     }
48
49                     leaf ip6_table_id {
50                         type int32;
51                         description "ip6 table id";
52                     }
53
54                     leaf l2_table_id {
55                         type int32;
56                         description "l2 table id";
57                     }
58                 }
59             }
60         }
61     }
62
63     augment /nc:contexts {
64         ext:augment-identifier "acl-mapping-entry-ctx-augmentation";
65         uses mapping-entry-context-attributes;
66     }
67 }