We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
For List level operation, should the list keys also be present inside json_ietf_val in gNMI RPC? Model - https://github.com/openconfig/public/blob/master/release/models/interfaces/openconfig-if-tunnel.yang
Below are the sample RPC's with and without list key inside json_ietf_val.
RPC without list key inside json_ietf_val: update: { path: { origin: "openconfig", elem: { name: "interfaces" }, elem: { name: "interface", key: { key: "name" value: "tunnel-ip100" } } }, val: { json_ietf_val: "{"config": {"type": "iana-if-type:tunnel"}, "tunnel": {"config": {"src": "100.1.1.1", "dst": "100.1.1.2", "ttl": 100, "gre-key": 10000}}}" } }
RPC with list key inside json_ietf_val: update: { path: { origin: "openconfig", elem: { name: "interfaces" }, elem: { name: "interface", key: { key: "name" value: "tunnel-ip100" } } }, val: { json_ietf_val: "{"name":"tunnel-ip100", "config": {"type": "iana-if-type:tunnel"}, "tunnel": {"config": {"src": "100.1.1.1", "dst": "100.1.1.2", "ttl": 100, "gre-key": 10000}}}" } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
For List level operation, should the list keys also be present inside json_ietf_val in gNMI RPC?
Model - https://github.com/openconfig/public/blob/master/release/models/interfaces/openconfig-if-tunnel.yang
Below are the sample RPC's with and without list key inside json_ietf_val.
RPC without list key inside json_ietf_val:
update:
{
path: {
origin: "openconfig",
elem:
{
name: "interfaces"
},
elem:
{
name: "interface",
key: {
key: "name"
value: "tunnel-ip100"
}
}
},
val: {
json_ietf_val: "{"config": {"type": "iana-if-type:tunnel"}, "tunnel": {"config": {"src": "100.1.1.1", "dst": "100.1.1.2", "ttl": 100, "gre-key": 10000}}}"
}
}
RPC with list key inside json_ietf_val:
update:
{
path: {
origin: "openconfig",
elem:
{
name: "interfaces"
},
elem:
{
name: "interface",
key: {
key: "name"
value: "tunnel-ip100"
}
}
},
val: {
json_ietf_val: "{"name":"tunnel-ip100", "config": {"type": "iana-if-type:tunnel"}, "tunnel": {"config": {"src": "100.1.1.1", "dst": "100.1.1.2", "ttl": 100, "gre-key": 10000}}}"
}
}
The text was updated successfully, but these errors were encountered: