Skip to content

Feature : To use ScalarArray Typed Value for leaflist while SetRequest #700

@shuklashiva001

Description

@shuklashiva001

For setting a leaf-list value, we have been using the command,

sudo gnmic -a 192.168.121.3:10161 -u su -p Ciena123! --skip-verify set --update-path /simple-test-container/leaf-test/ --update-value '{"leaf-leaf-range-test":['7', '9']}' --format prototext --print-request
whose setrequest looks like using json_val for typed value :
Set Request:
update: {
path: {
elem: {
name: "simple-test-container"
}
elem: {
name: "leaf-test"
}
}
val: {
json_val: "{"leaf-leaf-range-test":[7, 9]}"
}
}

There is no way or may be i am unable to search to set the leaf list value using the ScalarArray field of TypeValue.

I am in need of support for the ScalarArray field of TypedValue to be used for SetRequest in command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions