X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsamples%2Fclustering-test-app%2Fmodel%2Fsrc%2Fmain%2Fyang%2Fodl-mdsal-lowlevel-control.yang;h=aa2f2da7dd0fdb9746328321aaf921594786f349;hp=89d220bcf519ec590e783e63d31e04c3099dbd1d;hb=d97061af6814ad7b085af10797a252aa4aa5cda6;hpb=bc5486e6d9fab8f550be8b72874ce96a9eb52651 diff --git a/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/odl-mdsal-lowlevel-control.yang b/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/odl-mdsal-lowlevel-control.yang index 89d220bcf5..aa2f2da7dd 100644 --- a/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/odl-mdsal-lowlevel-control.yang +++ b/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/odl-mdsal-lowlevel-control.yang @@ -227,6 +227,37 @@ module odl-mdsal-lowlevel-control { } } + grouping transactions-params { + leaf seconds { + description "This RPC has to work (roughly) this long."; + mandatory true; + type uint32; + } + leaf transactions-per-second { + description "An upper limit of transactions per second this RPC shall try to achieve."; + mandatory true; + type uint32; + } + } + + grouping transactions-result { + leaf all-tx { + description "Number of all transactions executed."; + type int64; + mandatory true; + } + leaf insert-tx { + description "Number of transactions that inserted data."; + type int64; + mandatory true; + } + leaf delete-tx { + description "Number of transactions that deleted data."; + type int64; + mandatory true; + } + } + rpc write-transactions { description "Upon receiving this, the member shall make sure the outer list item of llt:id-ints exists for the given id, and then start creating (one by one) @@ -245,16 +276,7 @@ module odl-mdsal-lowlevel-control { OptimisticLockException is always considered an error."; input { uses llc:id-grouping; - leaf seconds { - description "This RPC has to work (roughly) this long."; - mandatory true; - type uint32; - } - leaf transactions-per-second { - description "An upper limit of transactions per second this RPC shall try to achieve."; - mandatory true; - type uint32; - } + uses transactions-params; leaf chained-transactions { description "If true, write transactions shall be created on a transaction chain, (created at start of the RPC call, and deleted at at its end). @@ -264,21 +286,7 @@ module odl-mdsal-lowlevel-control { } } output { - leaf all-tx { - description "Number of all transactions executed."; - type int64; - mandatory true; - } - leaf insert-tx { - description "Number of transactions that inserted data."; - type int64; - mandatory true; - } - leaf delete-tx { - description "Number of transactions that deleted data."; - type int64; - mandatory true; - } + uses transactions-result; } } @@ -305,16 +313,7 @@ module odl-mdsal-lowlevel-control { but the shard and the whole id item shall be kept as they are."; input { uses llc:id-grouping; - leaf seconds { - description "This RPC has to work (roughly) this long."; - mandatory true; - type uint32; - } - leaf transactions-per-second { - description "An upper limit of transactions per second this RPC shall try to achieve."; - mandatory true; - type uint32; - } + uses transactions-params; leaf isolated-transactions { description "The value for DOMDataTreeProducer#createTransaction argument."; mandatory true; @@ -322,21 +321,7 @@ module odl-mdsal-lowlevel-control { } } output { - leaf all-tx { - description "Number of all transactions executed."; - type int64; - mandatory true; - } - leaf insert-tx { - description "Number of transactions that inserted data."; - type int64; - mandatory true; - } - leaf delete-tx { - description "Number of transactions that deleted data."; - type int64; - mandatory true; - } + uses transactions-result; } }