HONEYCOMB-58 - Routing Api
[honeycomb.git] / lisp / api / src / main / yang / eid-mapping-context.yang
1 module eid-mapping-context {
2     yang-version 1;
3     namespace "urn:honeycomb:params:xml:ns:yang:eid:mapping:context";
4     prefix "eid-mapping-context";
5
6     description
7         "This module contains mappings stored for local-mappings id to actual eid";
8
9     revision "2016-08-01" {
10         description
11             "Initial revision.";
12     }
13
14     import lisp {prefix "lisp";}
15     import ietf-lisp-address-types {prefix "lisp-types";}
16
17     container contexts {
18         list eid-mapping-context {
19
20             key "name";
21
22             leaf name {
23                 type string;
24             }
25
26             container mappings{
27                 list mapping {
28
29                     key "id";
30
31                     leaf id {
32                       type lisp:mapping-id;
33                       description "Id that uniquely identifies a mapping";
34                     }
35
36                     container eid {
37                       uses lisp-types:lisp-address;
38                       description "EID address";
39                     }
40                 }
41             }
42         }
43     }
44 }