summaryrefslogtreecommitdiffstats
path: root/lisp/api/src/main/yang/eid-mapping-context@2016-08-01.yang
blob: 95ebd21bf2ff2ace08afa1bf56a51b8aca77c718 (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 "http://fd.io/hc2vpp/yang/eid-mapping-context";
    prefix "eid-mapping-context";

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

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

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

    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";
                    }
                }
            }
        }
    }
}