1 module mappingservice {
4 namespace "urn:opendaylight:lfm:mappingservice";
5 prefix "mappingservice";
7 import config { prefix config; revision-date 2013-04-05; }
8 import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
9 import yang-ext { prefix ext; revision-date 2013-07-09; }
10 import lisp-address-types { prefix lisp-address; revision-date 2015-03-09; }
11 import lisp-proto { prefix lisp-proto; revision-date 2015-08-20; }
13 contact "Lorand Jakab <lojakab@cisco.com";
16 "An MD-SAL based implementation of a LISP Map-Server database";
18 revision "2015-09-06" {
19 description "Renamed and moved module to mappingservice.api.";
22 identity mappingservice {
23 base config:service-type;
24 config:java-class "org.opendaylight.lispflowmapping.interfaces.mappingservice.IMappingService";
27 identity mappingservice-shell {
28 base config:service-type;
29 config:java-class "org.opendaylight.lispflowmapping.interfaces.mappingservice.IMappingServiceShell";
32 identity lisp-mappingservice {
33 base config:service-type;
34 config:java-class "org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping";
37 typedef mapping-origin {
38 description "The originating entity of an EID-to-RLOC mapping";
46 description "64 bit site identifier";
53 description "IID as a string lookup key in a URI";
58 description "EID as a string lookup key in a URI";
62 typedef mapping-change {
63 description "Type of mapping update";
70 identity instance-id-context {
71 description "A classifier for instance-id elements which allows direct access to a particular element in the data tree.";
74 identity eid-context {
75 description "A classifier for endpoint-id elements which allows direct access to a particular element in the data tree.";
78 grouping mapping-authkey {
87 grouping db-instance {
88 description "Describes the mappings belonging to the same Instance ID";
90 description "The 24-bit Instance ID";
94 description "A list of EID-to-RLOC mappings within the same Instance ID";
96 ext:context-instance "eid-context";
101 description "Mapping origin";
105 description "Site ID";
108 uses lisp-proto:EidToLocatorRecord;
110 list authentication-key {
111 description "A list of authentication keys for EID prefixes within the same Instance ID";
113 ext:context-instance "eid-context";
117 uses lisp-address:lisp-address;
118 uses mapping-authkey;
122 container mapping-database {
123 description "The LISP EID-to-RLOC mapping database";
125 description "A list of LISP Instance IDs";
127 ext:context-instance "instance-id-context";
134 uses lisp-address:lisp-address;
135 uses mapping-authkey;
141 uses lisp-address:lisp-address;
144 uses mapping-authkey;
151 uses lisp-address:lisp-address;
154 uses mapping-authkey;
161 uses lisp-address:lisp-address;
167 uses lisp-proto:EidToLocatorRecord;
173 uses lisp-address:lisp-address;
176 uses lisp-proto:EidToLocatorRecords;
182 uses lisp-proto:EidToLocatorRecord;
188 uses lisp-address:lisp-address;
192 notification mapping-changed {
193 description "Notification sent when a mapping is changed";
195 description "Mapping that has been changed";
196 uses lisp-proto:EidToLocatorRecord;
199 description "The type of change";