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=8c874e2fe80a60f345f67fe091cde4a883fcc631;hp=aca70a94c720f93608f68e16b77c6ae4b4a6a3d1;hb=71df6f6d7770d1c4fda8dd4989ca251860fca853;hpb=1bd8f4df538150512bab41e1a3de946aedd9fc5f 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 aca70a94c7..8c874e2fe8 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,6 +14,10 @@ module opendaylight-group-types { type uint32; } + typedef bucket-id { + type uint32; + } + typedef group-types { type enumeration { enum group-all; @@ -108,9 +112,9 @@ module opendaylight-group-types { container buckets { list bucket { - key "order"; - leaf order { - type int32; + key "bucket-id"; + leaf bucket-id { + type bucket-id; } leaf weight { @@ -133,7 +137,7 @@ module opendaylight-group-types { grouping group-statistics { leaf group-id { - type int32; + type group-id; } leaf ref-count { @@ -159,9 +163,9 @@ module opendaylight-group-types { container buckets { list bucket-counter { - key "order"; - leaf order { - type int32; + key "bucket-id"; + leaf bucket-id { + type bucket-id; } leaf packet-count { @@ -205,9 +209,8 @@ module opendaylight-group-types { grouping group-statistics-request { list group-stats { key "group-id"; - leaf group-id { - type int32; + type group-id; } } } @@ -216,11 +219,7 @@ module opendaylight-group-types { grouping group-statistics-reply { list group-stats { - key "group-stats-order"; - leaf group-stats-order { - type int32; - } - + key "group-id"; uses group-statistics; } } @@ -228,11 +227,7 @@ module opendaylight-group-types { grouping group-desc-stats-reply { list group-desc-stats { - key "order-id"; - leaf order-id { - type int32; - } - + key "group-id"; uses group; } } @@ -241,4 +236,12 @@ module opendaylight-group-types { uses group-features; } + grouping groups { + list group { + key "group-id"; + + uses group; + } + } + } \ No newline at end of file