X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fmodel%2Fmodel-flow-base%2Fsrc%2Fmain%2Fyang%2Fgroup-types.yang;h=244fedb3e7e0dc0baf4dc59455749156babe0e8a;hb=8b7df31b57271de1f2fc05c65d60f1c549a7701e;hp=685728a88709cac4396294e375f22943113de17c;hpb=1a898f3bd37baec93cc13140a5eb24b30d4ea999;p=controller.git 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 685728a887..244fedb3e7 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 @@ -14,20 +14,30 @@ module opendaylight-group-types { type uint32; } - grouping group-types { - leaf group-type { - type enumeration { - enum group-all; - enum group_select; - enum group_indirect; - enum group_ff; - } - } + typedef group-types { + type enumeration { + enum group-all; + enum group-select; + enum group-indirect; + enum group-ff; + } } + typedef group-capabilities { + type enumeration { + enum select-weight; + enum select-liveness; + enum chaining; + enum chaining-checks; + } + } + + grouping group { - uses group-types; + leaf group-type { + type group-types; + } leaf group-id { type group-id; @@ -73,16 +83,6 @@ module opendaylight-group-types { } } - grouping group-statistics-request { - list group-stats { - key "group-id"; - - leaf group-id { - type int32; - } - } - } - grouping group-statistics { leaf group-id { @@ -128,7 +128,51 @@ module opendaylight-group-types { } } + grouping group-features { + leaf types { + type bits { + bit group-all; + bit group-select; + bit group-indirect; + bit group-ff; + } + } + + leaf capabilities { + type bits { + bit select-weight; + bit select-liveness; + bit chaining; + bit 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 { @@ -139,10 +183,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; } @@ -151,35 +195,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