BUG:5042 LLDP Tunnel Monitoring should update the interface operational
[vpnservice.git] / interfacemgr / interfacemgr-api / src / main / yang / odl-interface-meta.yang
1 module odl-interface-meta {
2     namespace "urn:opendaylight:vpnservice:interfacemgr:meta";
3     prefix "odlifmeta";
4
5     import ovsdb {
6         prefix southbound; revision-date "2015-01-05";
7     }
8
9     revision "2015-10-07" {
10         description "ODL rendering specific Interface Manager Meta Module";
11     }
12
13     container bridge-interface-info {
14         description "Contains the list of dpns along with the tunnel interfaces configured on them.";
15
16         list bridge-entry {
17             key dpid;
18             leaf dpid {
19                 type uint64;
20             }
21
22             list bridge-interface-entry {
23                 key interface-name;
24                 leaf interface-name {
25                     type string;
26                 }
27             }
28         }
29     }
30
31     container bridge-ref-info {
32         config false;
33         description "The container that maps dpid with ovs bridge ref in the operational DS.";
34
35         list bridge-ref-entry {
36             key dpid;
37             leaf dpid {
38                 type uint64;
39             }
40
41             leaf bridge-reference {
42                 type southbound:ovsdb-bridge-ref;
43                 description "This is the reference to an ovs bridge";
44             }
45         }
46     }
47
48     container interface-child-info {
49         description "The container of all Child-Interfaces for a given interface.";
50         list interface-parent-entry {
51             key parent-interface;
52             leaf parent-interface {
53                 type string;
54             }
55
56             list interface-child-entry {
57                 key child-interface;
58                 leaf child-interface {
59                     type string;
60                 }
61             }
62         }
63     }
64
65    container if-indexes-interface-map {
66            config false;
67            list if-index-interface {
68                key if-index;
69                leaf if-index {
70                    type int32;
71                }
72                leaf interface-name {
73                    type string;
74                }
75            }
76    }
77
78    container interface-monitor-id-map {
79        config false;
80        list interface-monitor-id {
81            key interface-name;
82            leaf interface-name {
83                type string;
84            }
85            leaf-list monitor-id {
86                type uint32;
87            }
88        }
89    }
90
91    container monitor-id-interface-map {
92        config false;
93        list monitor-id-interface {
94            key monitor-id;
95            leaf monitor-id {
96                type uint32;
97            }
98            leaf interface-name {
99                type string;
100            }
101        }
102    }
103 }