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%2Fgroup-types.yang;h=97ca8b3c71491063d21ac4284b62e537c3b56dd6;hp=03e36924e77968ab2815f9b391055945a62dc69b;hb=8b84c5a210d5bf688fde0eb0db1b7f21f78a4f0b;hpb=292bc87b66ab44f9d5d81587c25a5bd1d68dc766 diff --git a/opendaylight/md-sal/model/model-flow-base/src/main/yang/group-types.yang b/opendaylight/md-sal/model/model-flow-base/src/main/yang/group-types.yang index 03e36924e7..97ca8b3c71 100644 --- a/opendaylight/md-sal/model/model-flow-base/src/main/yang/group-types.yang +++ b/opendaylight/md-sal/model/model-flow-base/src/main/yang/group-types.yang @@ -3,8 +3,8 @@ module opendaylight-group-types { prefix group; import ietf-inet-types {prefix inet; revision-date "2010-09-24";} - import ietf-yang-types {prefix yang; revision-date "2010-09-24";} - import opendaylight-flow-types {prefix flow-types;revision-date 2013-10-26";} + import ietf-yang-types {prefix yang; revision-date "2010-09-24";} + import opendaylight-action-types {prefix action;} revision "2013-10-18" { description "Initial revision of group service"; @@ -41,6 +41,10 @@ module opendaylight-group-types { type string; } + leaf install { + type boolean; + } + leaf barrier { type boolean; } @@ -64,30 +68,11 @@ module opendaylight-group-types { type uint32; } - container actions { - list action { - key "action-order"; - leaf action-order { - type int32; - } - - uses flow-types:action; - } - } + uses action:action-list; } } } - grouping group-statistics-request { - list group-stats { - key "group-id"; - - leaf group-id { - type int32; - } - } - } - grouping group-statistics { leaf group-id { @@ -133,7 +118,44 @@ module opendaylight-group-types { } } + grouping group-features { + uses group-types; + + leaf capabilities { + type enumeration { + enum select-weight; + enum select-liveness; + enum chaining; + enum chaining-checks; + } + } + + leaf-list max-groups { + type uint32; + description "Maximum number of groups for each type"; + max-elements 4; + } + + leaf-list actions { + type uint32; + description "Bitmap number OFPAT_* that are supported"; + max-elements 4; + } + } + + grouping group-statistics-request { + list group-stats { + key "group-id"; + + leaf group-id { + type int32; + } + } + } + + grouping group-statistics-reply { + list group-stats { key "group-stats-order"; leaf group-stats-order { @@ -144,10 +166,10 @@ module opendaylight-group-types { } } - grouping group-desc-stats { + grouping group-desc-stats-reply { + list group-desc-stats { key "order-id"; - leaf order-id { type int32; } @@ -156,34 +178,8 @@ module opendaylight-group-types { } } - grouping group-features { - list group-features { - key "order"; - leaf order { - type int32; - } - - uses group-types; - leaf capabilities { - type enumeration { - enum select-weight; - enum select-liveness; - enum chaining; - enum chaining-checks; - } - } - - leaf-list max-groups { - type uint32; - description "Maximum number of groups for each type"; - max-elements 4; - } - - leaf-list actions { - type uint32; - description "Bitmap number OFPAT_* that are supported"; - max-elements 4; - } - } - } + grouping group-features-reply { + uses group-features; + } + } \ No newline at end of file