From 8437ee9e433d62cd63712ddc10bda339171bf462 Mon Sep 17 00:00:00 2001 From: Deepthi V V Date: Mon, 18 Nov 2013 11:34:34 +0530 Subject: [PATCH] Added flags for flow removed event Signed-off-by: Deepthi V V Change-Id: I4765c5620f6a49fb55a993b80e1132fe73e15326 --- .../src/main/yang/flow-types.yang | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/opendaylight/md-sal/model/model-flow-base/src/main/yang/flow-types.yang b/opendaylight/md-sal/model/model-flow-base/src/main/yang/flow-types.yang index 4b50c0ee72..67c6933cc7 100644 --- a/opendaylight/md-sal/model/model-flow-base/src/main/yang/flow-types.yang +++ b/opendaylight/md-sal/model/model-flow-base/src/main/yang/flow-types.yang @@ -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; } -- 2.36.6