Added Security Rule for Custom ICMP
[ovsdb.git] / plugin-mdsal-adapter / src / main / yang / ovsdb-node-inventory.yang
1 module ovsdb-node-inventory {
2     namespace "urn:opendaylight:ovsdb-node-inventory";
3     prefix "ovsdbinv";
4
5     import opendaylight-inventory {
6         prefix inv;
7         revision-date "2013-08-19";
8     }
9
10     import yang-ext {
11         prefix ext;
12         revision-date "2013-07-09";
13     }
14
15     import ietf-inet-types {
16         prefix inet;
17         revision-date "2010-09-24";
18     }
19
20     import flow-node-inventory {
21         prefix flowcapable;
22         revision-date "2013-08-19";
23     }
24
25     revision "2014-07-31" {
26         description "Initial revision of the OVSDB Inventory model";
27     }
28
29     grouping ovsdb-bridge-attributes {
30         leaf bridge-uuid {
31             description "The unique identifier of the bridge";
32             type string;
33         }
34
35         leaf bridge-name {
36             description "The name of the bridge";
37             type string;
38         }
39
40         leaf managed-by {
41             description "The OVSDB which this bridge belongs to";
42             type inv:node-id;
43         }
44     }
45
46     grouping ovsdb-node-attributes {
47         leaf ip-address {
48             description "The IP Address of an OVSDB node";
49             type inet:ip-address;
50         }
51
52         leaf port {
53             description "The port that an OVSDB node is connected on";
54             type inet:port-number;
55         }
56
57         leaf-list managed-nodes {
58             type inv:node-id;
59         }
60     }
61
62     augment /inv:nodes/inv:node {
63         ext:augment-identifier "ovsdb-managed-node";
64         // when "/inv:nodes/inv:node/flowcapable:manufacturer = '*'";
65         container ovsdb-bridge {
66             uses ovsdb-bridge-attributes;
67         }
68     }
69
70     augment /inv:nodes/inv:node {
71         ext:augment-identifier "ovsdb-capable-node";
72         uses ovsdb-node-attributes;
73     }
74
75 }