ELAN: skip remote unicast MACs
[netvirt.git] / elanmanager / elanmanager-api / src / main / yang / etree.yang
1 module etree {
2     namespace "urn:opendaylight:netvirt:elan:etree";
3     prefix elan-etree;
4
5     import elan {prefix elan;}
6
7     import yang-ext {prefix ext; revision-date "2013-07-09";}
8
9     import hwvtep {prefix hwvtep;}
10
11     import network-topology {prefix "topo"; revision-date "2013-10-21"; }
12
13     revision "2016-06-14" {
14         description "etree module";
15     }
16
17     typedef etree-leaf-tag {
18         type    uint32;
19         description "Unique identifier across all the tenants for the ETREE's leafs.
20                          Each ETree instance has 2 unique tags: elan-tag for roots and etree-leaf-tag for leafs.";
21     }
22
23     augment "/elan:elan-interfaces/elan:elan-interface" {
24         ext:augment-identifier "etree-interface";
25         leaf etree-interface-type {
26             type enumeration {
27                 enum leaf;
28                 enum root;
29             }
30             description "Etree's type of the interface - Leaf or Root.";
31         }
32     }
33
34     augment "/elan:elan-instances/elan:elan-instance" {
35         ext:augment-identifier "etree-instance";
36         leaf etree-leaf-tag-val {
37             type    etree-leaf-tag;
38         }
39     }
40
41     augment "/elan:elan-tag-name-map/elan:elan-tag-name" {
42         ext:augment-identifier "etree-leaf-tag-name";
43         leaf etree-leaf-tag {
44             type    etree-leaf-tag;
45         }
46     }
47
48     container etree-logical-switches {
49         description "logical switch entity in a L2GW device which belongs to the etree network";
50         list etree-logical-switch  {
51             key "name";
52             max-elements "unbounded";
53             min-elements "0";
54             leaf name {
55                 type leafref {
56                     path "/hwvtep:hwvtep-global-attributes/hwvtep:logical-switches/hwvtep:hwvtep-node-name";
57                 }
58             }
59             leaf switch-interfaces-type {
60                 type enumeration {
61                     enum leaf;
62                     enum root;
63                 }
64                 description "The type of the etree interfaces behind the logical switch. Leaves or Roots.";
65             }
66         }
67     }
68 }