how to specify the node-ref in the rest api invocation.

asked 2015-06-22 05:16:44 -0700

updated 2015-06-23 09:00:16 -0700

I would like to invoke follwoing rpc using REST to install the flow to the OVS switch:

rpc add-flow {
    description "Adding flow to openflow device.";
    input {
        uses tr:transaction-metadata;
        leaf flow-ref {
            type types:flow-ref;
        uses node-flow;            
    output {
        uses tr:transaction-aware;

grouping node-flow {
    description "Top openflow flow structure suitable for rpc input (contains node-context).";
    uses "inv:node-context-ref";

    leaf flow-table {
        type flow-table-ref;
    uses types:flow;

Could someone please explain me how to pass the node-ref and formulate the node-context-ref.

RPC detail:

edit retag flag offensive close merge delete