summaryrefslogtreecommitdiffstats
path: root/lisp/api/src/main/yang/eid-mapping-context@2016-08-01.yang
blob: 8ce12385d1e3c546e706436ead52933d812e6de3 (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";

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