X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=model%2Fmodel-flow-base%2Fsrc%2Fmain%2Fyang%2Fopendaylight-flow-types.yang;h=ad70cda6016cce94aba516361bc3b024438ccd38;hb=371c65647d29712b92836dcc2b178d42aecbf9c7;hp=9de9cb7215173d72f6cf923efc0d4ca66986c6c8;hpb=de64a9f6fb2da03236885800cc65a4fb10349511;p=openflowplugin.git diff --git a/model/model-flow-base/src/main/yang/opendaylight-flow-types.yang b/model/model-flow-base/src/main/yang/opendaylight-flow-types.yang index 9de9cb7215..ad70cda601 100644 --- a/model/model-flow-base/src/main/yang/opendaylight-flow-types.yang +++ b/model/model-flow-base/src/main/yang/opendaylight-flow-types.yang @@ -122,15 +122,27 @@ module opendaylight-flow-types { bit SEND_FLOW_REM; } } + typedef removed-flow-reason { + type enumeration { + enum OFPRR_IDLE_TIMEOUT{ + value 0; + description "Flow idle time exceeded idle_timeout."; + } + enum OFPRR_HARD_TIMEOUT { + value 1; + description "Time exceeded hard_timeout."; + } + enum OFPRR_DELETE { + value 2; + description "Evicted by a DELETE flow mod."; + } + enum OFPRR_GROUP_DELETE { + value 3; + description "Group was removed."; + } - typedef removed_reason_flags { - type bits { - bit IDLE_TIMEOUT; - bit HARD_TIMEOUT; - bit DELETE; - bit GROUP_DELETE; - } - } + } + } grouping generic_flow_attributes { leaf priority { @@ -245,7 +257,7 @@ module opendaylight-flow-types { uses generic_flow_attributes; leaf removed_reason { - type removed_reason_flags; + type removed-flow-reason; } leaf duration_nsec {