summaryrefslogtreecommitdiffstats
path: root/lisp/api/src/main/yang/eid-mapping-context.yang
blob: 3fb6d893aeabc80783ad125fc0420c04536e5026 (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
module eid-mapping-context {
    yang-version 1;
    namespace "urn:honeycomb:params:xml:ns:yang:eid:mapping:context";
    prefix "eid-mapping-context";

    description
        "This module contains mappings stored for local-mappings id to actual eid";

    revision "2016-08-01" {
        description
            "Initial revision.";
    }

    import lisp {prefix "lisp";}
    import ietf-lisp-address-types {prefix "lisp-types";}

    container contexts {
        list eid-mapping-context {

            key "name";

            leaf name {
                type string;
            }

            container mappings{
                list mapping {

                    key "id";

                    leaf id {
                      type lisp:mapping-id;
                      description "Id that uniquely identifies a mapping";
                    }

                    container eid {
                      uses lisp-types:lisp-address;
                      description "EID address";
                    }
                }
            }
        }
    }
}