Hi Icaro,

[1] actually defines the grouping, rpc and notifications, but [2] provides
the high level tree structure where these grouping are augmented. There are
two ways you can do Flow related CRUD operations

(a) Through Data Store : In this case you use [2] to store the flow in
config data store and that eventually go down to the switch using the FRM
application. Also Statistics manager fetch the installed flow and populate
the same tree in operational data store part. That way you can "get" the
flow that is really installed on the switch.

(b) Through RPC : To use this method you need to use the RPC defined  in
[1] to do Create/Delete/Update operations, but you will have to use RPC
defined in [3] to get the flow from switch. Although these API's are async
API, so once you make a call to fetch the flow, you will have to listen to
notification [4] to get the statistics and make sure that flow is present
in those statistics ( it's a job done by statistics-manager for approach
[a].


[3]
https://github.com/opendaylight/openflowplugin/blob/634507bd2edc21d6fe8266d80ba05e6a3887f7ce/model/model-flow-statistics/src/main/yang/opendaylight-flow-statistics.yang#L84
[4]
https://github.com/opendaylight/openflowplugin/blob/634507bd2edc21d6fe8266d80ba05e6a3887f7ce/model/model-flow-statistics/src/main/yang/opendaylight-flow-statistics.yang#L97

Hope it helps.

Thanks
Anil

On Mon, Jun 6, 2016 at 2:40 PM, Icaro Camelo <icam...@inocybe.ca> wrote:

> Hi all,
>
> I'm checking that sal-flow.yang [1] creates, updates and deletes flows,
> but it doesn't contain a get flows. On the other hand, this operation is
> present in flow-node-inventory.yang [2].
>
> Is this a design choice or there is another reason to be in two different
> YANG files?
>
> [1] -
> https://github.com/opendaylight/openflowplugin/blob/634507bd2edc21d6fe8266d80ba05e6a3887f7ce/model/model-flow-service/src/main/yang/sal-flow.yang
>
> [2] -
> https://github.com/opendaylight/openflowplugin/blob/634507bd2edc21d6fe8266d80ba05e6a3887f7ce/model/model-flow-service/src/main/yang/flow-node-inventory.yang
>
> --
> Thanks,
>
> Icaro Camelo
> *Software Developer*
>
> _______________________________________________
> openflowplugin-dev mailing list
> openflowplugin-dev@lists.opendaylight.org
> https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
>
>


-- 
Thanks
Anil
_______________________________________________
openflowplugin-dev mailing list
openflowplugin-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to