HONEYCOMB-58 - Routing Api
[honeycomb.git] / lisp / api / src / main / yang / adjacencies-identification-context.yang
1 module adjacencies-identification-context {
2     yang-version 1;
3     namespace "urn:honeycomb:params:xml:ns:yang:adjacencies:identification:context";
4     prefix "adjacencies-identification-context";
5
6     description
7             "This module contains mappings between adjacency identificator and actual unique combination of
8              remote and local eid in vpp";
9
10     revision "2016-08-01" {
11         description
12             "Initial revision.";
13     }
14
15     import lisp {prefix "lisp";}
16     import ietf-lisp-address-types {prefix "lisp-types";}
17     import yang-ext {prefix "ext";}
18     import naming-context { prefix "nc";}
19
20     grouping adjacencies-identification-context-attributes{
21
22         container adjacencies-identification-contexts {
23
24             list adjacencies-identification {
25
26                 key "name";
27
28                 leaf name {
29                     type string;
30                 }
31
32                 container mappings{
33                     list mapping {
34
35                         key "id";
36
37                         leaf id {
38                           type string;
39                           description "Id that uniquely identifies adjacency";
40                         }
41
42                         container eid-identificator-pair{
43                             leaf local-eid-id {
44                               type lisp:mapping-id;
45                               description "Local EID identifier";
46                               mandatory true;
47                             }
48
49                             leaf remote-eid-id {
50                               type lisp:mapping-id;
51                               description "Remote EID identifier";
52                               mandatory true;
53                             }
54                         }
55                     }
56                 }
57             }
58         }
59     }
60
61      augment /nc:contexts {
62             ext:augment-identifier "adjacencies-identification-ctx-augmentation";
63             uses adjacencies-identification-context-attributes;
64      }
65 }