Added flags for flow removed event 08/2808/4
authorDeepthi V V <deepthi.v.v@ericsson.com>
Mon, 18 Nov 2013 06:04:34 +0000 (11:34 +0530)
committerDeepthi V V <deepthi.v.v@ericsson.com>
Wed, 20 Nov 2013 13:07:16 +0000 (13:07 +0000)
Signed-off-by: Deepthi V V <deepthi.v.v@ericsson.com>
Change-Id: I4765c5620f6a49fb55a993b80e1132fe73e15326

opendaylight/md-sal/model/model-flow-base/src/main/yang/flow-types.yang

index 4b50c0ee720488dfd47ead3754099fd05f3ecb10..67c6933cc7b3158d5435b2929cfae9bfaa99dad5 100644 (file)
@@ -72,6 +72,15 @@ module opendaylight-flow-types {
             bit SEND_FLOW_REM;
         }
     }
+
+    typedef removed_reason_flags {
+        type bits {
+            bit IDLE_TIMEOUT;
+            bit HARD_TIMEOUT;
+            bit DELETE;
+            bit GROUP_DELETE;
+        }
+    }
     
     grouping generic_flow_attributes {
         leaf priority {
@@ -185,6 +194,10 @@ module opendaylight-flow-types {
     grouping flow-mod-removed {
         uses generic_flow_attributes;
         
+        leaf removed_reason {
+            type removed_reason_flags;
+        }
+
         leaf duration_nsec {
             type uint32;
         }
@@ -192,22 +205,15 @@ module opendaylight-flow-types {
         leaf duration_sec {
             type uint32;
         }
-        
-        leaf idle_timeout {
-            type uint16;
-        }
-        
-        leaf hard_timeout {
-            type uint16;
-        }
-        
+
         leaf packet_count {
             type uint64;
         }
-        
+
         leaf byte_count {
             type uint64;
         }
+               
         container match {
             uses match:match;
         }