X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fmodel%2Fmodel-flow-base%2Fsrc%2Fmain%2Fyang%2Fflow-types.yang;fp=opendaylight%2Fmd-sal%2Fmodel%2Fmodel-flow-base%2Fsrc%2Fmain%2Fyang%2Fflow-types.yang;h=b5a70ccfe5357a3dec6b91d1ea04aac559a0ec1a;hp=4145977f635c2cb59b2d9564712d087aad6a378b;hb=83591d76828e7557ca83189f516a7834b1f17c07;hpb=070eefb2e3ade7d920ea5fe6264ac0f949dbb378 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 4145977f63..b5a70ccfe5 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 @@ -69,15 +69,7 @@ module opendaylight-flow-types { } } - grouping flow { - container match { - uses match:match; - } - - container instructions { - uses instruction-list; - } - + grouping generic_flow_attributes { leaf priority { type uint16; } @@ -94,16 +86,28 @@ module opendaylight-flow-types { type uint64; } + leaf table_id { + type uint8; + } + } + + grouping flow { + container match { + uses match:match; + } + + container instructions { + uses instruction-list; + } + + uses generic_flow_attributes; + leaf container-name { type string; } leaf cookie_mask { - type uint8; - } - - leaf table_id { - type uint8; + type uint64; } leaf buffer_id { @@ -118,11 +122,11 @@ module opendaylight-flow-types { type uint32; } - leaf flags{ + leaf flags { type flow-mod-flags; } - leaf flow-name{ + leaf flow-name { type string; } @@ -173,4 +177,35 @@ module opendaylight-flow-types { type yang:counter64; } } + + grouping flow-mod-removed { + uses generic_flow_attributes; + + leaf duration_nsec { + type uint32; + } + + 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; + } + } } \ No newline at end of file