context-reference statement is used to mark a leaf
in RPCs which serves as identifier of the context
in which RPC is used. The context is then used
as an routing information when selecting between
multiple implementations of same RPCs.
Change-Id: I1e8bf7e98429262967ae63f7a2e0481396048e3e
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
}
augment "/inv:node-connector-updated" {
}
augment "/inv:node-connector-updated" {
- ext:augment-identifier "flow-capable-node-connector-updated";
+ ext:augment-identifier "flow-capable-node-connector-updated";
+ uses flow-node-connector;
}
}
\ No newline at end of file
}
}
\ No newline at end of file
rpc update-group {
input {
rpc update-group {
input {
+ leaf node {
+ ext:context-reference "inv:node-context";
+ type inv:node-ref;
+ }
namespace "urn:opendaylight:packet:service";
prefix flow;
namespace "urn:opendaylight:packet:service";
prefix flow;
+ import yang-ext {prefix ext;}
import opendaylight-inventory {prefix inv;}
import ietf-inet-types {prefix inet;}
import ietf-yang-types {prefix yang;}
import opendaylight-inventory {prefix inv;}
import ietf-inet-types {prefix inet;}
import ietf-yang-types {prefix yang;}
input {
leaf cookie {
type cookie;
input {
leaf cookie {
type cookie;
+ }
+ leaf node {
+ ext:context-reference "inv:node-context";
+ type inv:node-ref;
}
leaf egress {
type inv:node-connector-ref;
}
leaf egress {
type inv:node-connector-ref;