summaryrefslogtreecommitdiffstats
path: root/lisp/api/src/main/yang/gpe-locator-pair-identification-context@2017-05-17.yang
blob: 776dbc927d9159c3af6239eda74b00ee2df52dbb (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
66
67
68
69
70
module gpe-locator-pair-identification-context {
    yang-version 1;
    namespace "urn:honeycomb:params:xml:ns:yang:gpe:locator:pair:identification:context";
    prefix "gpe-locator-pair-identification-context";

    description
            "This module contains mappings between gpe entry identificator and locator pair in vpp";

    revision "2017-05-17" {
        description
            "Initial revision.";
    }

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

    grouping gpe-locator-pair-identification-context-attributes{

        container gpe-locator-pair-identification-contexts {

            list gpe-locator-pair-identification {

                key "name";

                leaf name {
                    type string;
                }

                container mappings{
                    list mapping {

                        key "id";

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

                        list locator-pair-mapping {
                            key "id";

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

                            container pair {
                                leaf local-address{
                                  type inet:ip-address;
                                  description "Local locator address";
                                }
                                leaf remote-address {
                                  type inet:ip-address;
                                  description "Remote locator address";
                                }
                            }
                        }
                    }
                }
            }
        }
    }

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