summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang/ietf-acl-context.yang
blob: 71bfb73e475b67069dc1e1a9cf5b359dffcd7b51 (plain)
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
module ietf-acl-context {
    yang-version 1;
    namespace "urn:opendaylight:params:xml:ns:yang:vpp:acl:context";
    prefix "nc";

    description "Context for nat mapping";

    revision "2016-12-14" {
        description "Initial revision.";
    }

    import ietf-inet-types {
       prefix "inet";
    }

    import naming-context {
       prefix "nc";
    }

    import yang-ext {
       prefix "ext";
    }

    grouping mapping-entry-context-attributes {
        container acl-mapping-entry-context {
            list mapping-table {
                key "direction";

                leaf direction {
                    type enumeration {
                        enum "ingress";
                        enum "egress";
                    }
                }

                list mapping-entry {
                    key "index";

                    leaf index {
                        type int32;
                        description "interface id";
                    }

                    leaf ip4_table_id {
                        type int32;
                        description "ip4 table id";
                    }

                    leaf ip6_table_id {
                        type int32;
                        description "ip6 table id";
                    }

                    leaf l2_table_id {
                        type int32;
                        description "l2 table id";
                    }
                }
            }
        }
    }

    augment /nc:contexts {
        ext:augment-identifier "acl-mapping-entry-ctx-augmentation";
        uses mapping-entry-context-attributes;
    }
}