BUG 2090 : Clustering : Bring akka-raft unit test coverage upto 80%
[controller.git] / opendaylight / md-sal / samples / l2switch / model / src / main / yang / l2-address-tracker.yang
1 module l2-address-tracker {
2   yang-version 1;
3   namespace "urn:opendaylight:l2-address-tracker";
4   prefix l2-address-tracker;
5
6   import ietf-yang-types {
7     prefix yang;
8     revision-date 2010-09-24;
9   }
10   import opendaylight-inventory {
11     prefix inv;
12     revision-date 2013-08-19;
13   }
14
15   organization "Cisco Systems Inc";
16   contact
17     "Alex Fan <alefan@cisco.com>";
18   description
19     "YANG version of the  L2 Address Tracker Data Model";
20
21   revision 2014-04-02 {
22     description
23       "L2 Address Tracker module draft.";
24   }
25
26   grouping l2-address {
27     leaf mac {
28         type yang:mac-address;
29         mandatory true;
30         description
31           "the mac address of the host.";
32     }
33     leaf node-connector-ref {
34       type inv:node-connector-ref;
35     }
36   }
37
38   container l2-addresses {
39     config false;
40     list l2-address {
41       key "mac";
42       uses l2-address;
43     }
44   }
45 }