Added flow capable node and augmentations to inventory 16/1516/3
authorTony Tkacik <ttkacik@cisco.com>
Mon, 30 Sep 2013 16:44:49 +0000 (18:44 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 1 Oct 2013 13:58:27 +0000 (13:58 +0000)
Change-Id: Iea8b826880fb56d6d52ea3b0ac18e630be05138b
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
opendaylight/md-sal/model/model-flow-service/src/main/yang/flow-node-inventory.yang [new file with mode: 0644]
opendaylight/md-sal/model/model-inventory/src/main/yang/inventory.yang

diff --git a/opendaylight/md-sal/model/model-flow-service/src/main/yang/flow-node-inventory.yang b/opendaylight/md-sal/model/model-flow-service/src/main/yang/flow-node-inventory.yang
new file mode 100644 (file)
index 0000000..76c172b
--- /dev/null
@@ -0,0 +1,70 @@
+module flow-node-inventory {
+    namespace "urn:opendaylight:flow:inventory";
+    prefix flownode;
+
+    import yang-ext {prefix ext;}
+    import ietf-inet-types {prefix inet;}
+    import ietf-yang-types {prefix yang;}
+    import opendaylight-inventory {prefix inv;}
+    
+    revision "2013-08-19" {
+        description "Flow Capable Node extensions to the nventory model";
+    }
+    
+    grouping flow-capable-node-capabilities {
+        container tables {
+            leaf support-state {
+                type inv:support-type;
+            }
+            
+        }
+        
+        container group-tables {
+        
+        }
+        
+        container supported-match-types {
+            list match-type {
+                leaf match {
+                    type string; // FIXME: Add identity
+                }
+                leaf support-state {
+                    type inv:support-type;
+                }
+            }
+        }
+        
+        container supported-instructions {
+            list instruction-type {
+                leaf instruction {
+                    type string; // FIXME: Add identity
+                }
+                
+                leaf support-state {
+                    type inv:support-type;
+                }
+            }
+        }
+
+        container supported-actions {
+            list action-type {
+                leaf action {
+                    type string; // FIXME: Add identity
+                }
+                
+                leaf support-state {
+                    type inv:support-type;
+                }
+            }
+        }
+    }
+    
+    augment "/inv:nodes/inv:node" {
+        augment-identifier "flow-capable-node";
+        uses flow-capable-node-capabilities;
+    }
+    
+    notification node-capabilities-updated {
+        uses flow-capable-node-capabilities;
+    }
+}
\ No newline at end of file
index a114c624f33cc7234c1a9a130513ec1cd1ba6624..d7310fa606dbd68319b6e6122a042e92636c8e87 100644 (file)
@@ -10,6 +10,15 @@ module opendaylight-inventory {
     revision "2013-08-19" {
         description "Initial revision of Inventory model";
     }
+    
+    
+    typedef support-type {
+        type enumeration {
+            enum native;
+            enum emulated;
+            enum not-supported;
+        }
+    }
 
     typedef node-id {
         type inet:uri;
@@ -56,7 +65,7 @@ module opendaylight-inventory {
             key "id";
             ext:context-instance "node-context";
 
-                       uses node;
+            uses node;
 
             list "node-connector" {
                 key "id";