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=4442fbb3358001297434fee652faad30bb5712c4;hb=409a1a2f2ce689de27b76b779b7ce2d2ba216426;hp=97ca8b3c71491063d21ac4284b62e537c3b56dd6;hpb=90e562e3dcc64e46a657ef4ab3047b2b709339c7;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 97ca8b3c71..4442fbb335 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,85 @@ 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 bucket-id { + type uint32; + } + + 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; + } + } + + identity group-type { + description "Base identity for all the available group types"; + } + + identity group-all { + base group-type; + description "All (multicast/broadcast) group"; + } + + identity group-select { + base group-type; + description "Select group"; + } + + identity group-indirect { + base group-type; + description "Indirect group"; + } + + identity group-ff { + base group-type; + description "Fast failover group"; + } + + identity group-capability { + description "Base identity for all the supported group capabilities"; + } + + identity select-weight{ + base group-capability; + description "Support weight for select groups"; + } + + identity select-liveness{ + base group-capability; + description "Support liveness for select groups"; + } + + identity chaining{ + base group-capability; + description "Support chaining groups"; + } + + identity chaining-checks{ + base group-capability; + description "Check chaining for loops and delete"; + } + + typedef group-ref { + type instance-identifier; } grouping group { - uses group-types; + leaf group-type { + type group-types; + } leaf group-id { type group-id; @@ -41,19 +106,15 @@ module opendaylight-group-types { type string; } - leaf install { - type boolean; - } - leaf barrier { type boolean; } container buckets { list bucket { - key "order"; - leaf order { - type int32; + key "bucket-id"; + leaf bucket-id { + type bucket-id; } leaf weight { @@ -76,7 +137,7 @@ module opendaylight-group-types { grouping group-statistics { leaf group-id { - type int32; + type group-id; } leaf ref-count { @@ -102,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 { @@ -119,16 +180,18 @@ module opendaylight-group-types { } grouping group-features { - uses group-types; + + leaf-list group-types-supported { + type identityref { + base group-type; + } + } - leaf capabilities { - type enumeration { - enum select-weight; - enum select-liveness; - enum chaining; - enum chaining-checks; - } - } + leaf-list group-capabilities-supported { + type identityref { + base group-capability; + } + } leaf-list max-groups { type uint32; @@ -146,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; } } } @@ -157,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; } } @@ -169,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; } } @@ -182,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