Added IP address of the OF switch to flow-node 12/9612/7
authorMartin Sunal <msunal@cisco.com>
Sat, 2 Aug 2014 17:18:50 +0000 (19:18 +0200)
committerMartin Sunal <msunal@cisco.com>
Thu, 21 Aug 2014 19:46:05 +0000 (19:46 +0000)
- adds IP address to flow capable node
- adds routed RPC:
get-node-ip-address - returns IP address of a flow capable node

Change-Id: Ie1f3459ddbe898cc2aa8cc488437666c566246d6
Signed-off-by: Martin Sunal <msunal@cisco.com>
opendaylight/md-sal/model/model-flow-service/src/main/yang/flow-node-inventory.yang

index 605cb9004a65235dd6cf66b0ff065514f54ad183..64c3d9c467bdeeae7726f4f462ab54a75f5e7775 100644 (file)
@@ -122,10 +122,15 @@ module flow-node-inventory {
             uses meter:meter;
         }
     }
-    
-    
-    grouping flow-node {
 
+    grouping ip-address-grouping {
+        leaf ip-address {
+            description "IP address of a flow capable node.";
+            type inet:ip-address;
+        }
+    }
+
+    grouping flow-node {
         leaf manufacturer {
             type string;
         }
@@ -145,6 +150,7 @@ module flow-node-inventory {
         uses tables;
         uses group:groups;
         uses meters;
+        uses ip-address-grouping;
         // TODO: ports
         
         container supported-match-types {
@@ -197,7 +203,16 @@ module flow-node-inventory {
             
         }
     }
-    
+
+    rpc get-node-ip-address {
+        input {
+            uses "inv:node-context-ref";
+        }
+        output {
+            uses ip-address-grouping;
+        }
+    }
+
     grouping flow-node-connector {
 
         uses port:flow-capable-port;