summaryrefslogtreecommitdiffstats
path: root/lisp/api/src/main/yang/adjacencies-identification-context.yang
blob: ae05f83f5de8a90734d78fbf0f62ee7680f8f897 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module adjacencies-identification-context {
    yang-version 1;
    namespace "urn:honeycomb:params:xml:ns:yang:adjacencies:identification:context";
    prefix "adjacencies-identification-context";

    description
            "This module contains mappings between adjacency identificator and actual unique combination of
             remote and local eid in vpp";

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

    import lisp {prefix "lisp";}
    import ietf-lisp-address-types {prefix "lisp-types";}
    import yang-ext {prefix "ext";}
    import naming-context { prefix "nc";}

    grouping adjacencies-identification-context-attributes{

        container adjacencies-identification-contexts {

            list adjacencies-identification {

                key "name";

                leaf name {
                    type string;
                }

                container mappings{
                    list mapping {

                        key "id";

                        leaf id {
                          type string;
                          description "Id that uniquely identifies adjacency";
                        }

                        container eid-identificator-pair{
                            leaf local-eid-id {
                              type lisp:mapping-id;
                              description "Local EID identifier";
                              mandatory true;
                            }

                            leaf remote-eid-id {
                              type lisp:mapping-id;
                              description "Remote EID identifier";
                              mandatory true;
                            }
                        }
                    }
                }
            }
        }
    }

     augment /nc:contexts {
            ext:augment-identifier "adjacencies-identification-ctx-augmentation";
            uses adjacencies-identification-context-attributes;
     }
}