Skip to content
New issue

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

Does gNMI SET with List level operation require list keys also under json_ietf_val ? #194

Open
Shobhit-09 opened this issue Sep 13, 2023 · 0 comments

Comments

@Shobhit-09
Copy link

Shobhit-09 commented Sep 13, 2023

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}}}"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant