sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
724 stars 1.38k forks source link

[mgmt-framework]How to add extended yang function for Openconfig Yang #11692

Open guangjung opened 2 years ago

guangjung commented 2 years ago

Description

I tried to add extended yang for an Openconfig Yang, but found that leaf in extended yang cannot be operated (set/get operations by executing REST command). Can you make an example ? Or help me, thanks.

Steps to reproduce the issue:

refer to https://github.com/sonic-net/sonic-mgmt-common/issues/60

Describe the results you received:

Describe the results you expected:

  1. nodes in extended yang can be operated successful by REST API (POST/PUT/PATCH/Delete/GET Method)
  2. add an example to sonic-mgmt-common and be operated by REST API, if possible. or add example description to Management Framework.md

Output of show version:

I used sonic-buildimage (202205 branch), and update src/sonic-mgmt-common and src/sonic-mgmt-framework to master branch.

key build options: "make configure PLATFORM=vs PLATFORM_ARCH=amd64"

Output of show techsupport:

N/A

Additional information you deem important (e.g. issue happens only occasionally):

yxieca commented 2 years ago

@kannankvs can you/Dell help provide example?

zhangyanzhao commented 2 years ago

review in YANG subgroup

guangjung commented 2 years ago

Hi , 1). when can I see the example. Until now,I still NOT find it. 2). Looking forward to solving the problems I encounter, who can help me, thanks.

zhangyanzhao commented 1 year ago

@venkatmahalingam can you please help to provide an example?