Skip to content

Add yang extension to control translation configDB<->yang from YANG models.#52

Merged
zhenggen-xu merged 1 commit intozhenggen-xu:sonic-cfg-mgmtfrom
praveen-li:yang_extension
Mar 17, 2020
Merged

Add yang extension to control translation configDB<->yang from YANG models.#52
zhenggen-xu merged 1 commit intozhenggen-xu:sonic-cfg-mgmtfrom
praveen-li:yang_extension

Conversation

@praveen-li
Copy link
Copy Markdown
Collaborator

[yang-models]: Add yang extension to control traslation configDB<->ya…

…ng from YANG models.

Changes:
1.) Added yang extensions in YANG models.
2.) Changed the translation and rev translation code to depend on yang extensions.
3.) Load yang models in test code similar to dev code.
4.) Minor changes in test files.
Signed-off-by: Praveen Chaudhary [email protected]

- What I did
Changes:
1.) Added yang extensions in YANG models.
2.) Changed the translation and rev translation code to depend on yang extensions.
3.) Load yang models in test code similar to dev code.
4.) Minor changes in test files.

- How I did it
Yang supports extension keyword, with that we can enter meta data in YANG module.
Here I have entered regular expression as extension to control translation configDB<->yang from YANG models

- How to verify it
Building package is enough since it already has required test cases for translation configDB<->yang.

pchaudha@e8879b00ab3e:/sonic$ make -f slave.mk target/python-wheels/sonic_yang_mgmt-1.0-py2-none-any.whl
SONiC Build System

Build Configuration
"CONFIGURED_PLATFORM"             : "broadcom"
"CONFIGURED_ARCH"                 : "amd64"
"SONIC_CONFIG_PRINT_DEPENDENCIES" : ""
"SONIC_BUILD_JOBS"                : "1"
"SONIC_CONFIG_MAKE_JOBS"          : "24"
"SONIC_USE_DOCKER_BUILDKIT"       : ""
"USERNAME"                        : "admin"
"PASSWORD"                        : "YourPaSsWoRd"
"ENABLE_DHCP_GRAPH_SERVICE"       : ""
"SHUTDOWN_BGP_ON_START"           : ""
"ENABLE_PFCWD_ON_START"           : ""
"INSTALL_DEBUG_TOOLS"             : ""
"ROUTING_STACK"                   : "frr"
"FRR_USER_UID"                    : "300"
"FRR_USER_GID"                    : "300"
"ENABLE_SYNCD_RPC"                : ""
"ENABLE_ORGANIZATION_EXTENSIONS"  : "y"
"HTTP_PROXY"                      : ""
"HTTPS_PROXY"                     : ""
"ENABLE_SYSTEM_TELEMETRY"         : ""
"SONIC_DEBUGGING_ON"              : ""
"SONIC_PROFILING_ON"              : ""
"KERNEL_PROCURE_METHOD"           : "build"
"BUILD_TIMESTAMP"                 : ""
"BLDENV"                          : ""
"VS_PREPARE_MEM"                  : "yes"
"ENABLE_SFLOW"                    : "y"

pchaudha@e8879b00ab3e:/sonic$ cd -

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@praveen-li praveen-li changed the title [yang-models]: Add yang extension to control traslation configDB<->ya… Add yang extension to control translation configDB<->yang from YANG models. Feb 20, 2020
@zhenggen-xu zhenggen-xu requested a review from li-pingmao March 7, 2020 04:02
@zhenggen-xu
Copy link
Copy Markdown
Owner

Can you resolve the conflicts?

…ng from YANG models.

Changes:
1.) Added yang extensions in YANG models.
2.) Changed the translation and rev translation code to depend on yang extensions.
3.) Load yang models in test code similar to dev code.
4.) Minor changes in test files.
Signed-off-by: Praveen Chaudhary [email protected]
@zhenggen-xu zhenggen-xu merged commit a65c1f3 into zhenggen-xu:sonic-cfg-mgmt Mar 17, 2020
zhenggen-xu pushed a commit that referenced this pull request Aug 31, 2020
 [xcvrd] Extend xcvrd with SFP error event handling (#52)
[thermal fix] 1. Catch exception for each update iteration; 2. add
unit test (#51)
 Add thermal control daemon to monitor FAN and thermal status and run
 thermal policy (#49
zhenggen-xu pushed a commit that referenced this pull request Dec 15, 2020
[dataset] Add dataset "system uptime" into non-db client. (#52)
Adding new data set to query Sonic OS version. (#50)
[gnmi_server] Disregard EOF status for STREAM subs (#48)

Signed-off-by: Yong Zhao <[email protected]>
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Aug 9, 2022
…onic-net#10406)

#### Why I did it
To take the following into sonic-buildimage
36e1f61 API endpoints to ConfigDBConnector to support pre-loading data without blackout (sonic-net#587)

[sonic-swss-common](https://github.com/Azure/sonic-swss-common)
```
36e1f61 API endpoints to ConfigDBConnector to support pre-loading data without blackout (sonic-net#587)
556f4ad Add SAI copy action to ACL schema (sonic-net#591)
db18c3a Fix bitwidth of mac address in SAI ACL schema (sonic-net#590)
e9442bb [ConfigDBPipeConnector]: Added set_entry API (sonic-net#586)
6c007c0 Update README for gmock (sonic-net#562)
```

[sonic-linkmgrd](https://github.com/Azure/sonic-linkmgrd)
```
83dfc99 Enforce uniform file/class naming convention (zhenggen-xu#52)
83004bf Shutdown ICMP heartbeats when default route state is missing and ToR is in `auto` mode (zhenggen-xu#44)
b81ea31 Add `LinkProberStateMachineActiveActive`  (zhenggen-xu#47)
c43cf7a Decrease link probing interval after switchover to better determine the overhead of a toggle (zhenggen-xu#43)
2239fbe Enhance clang format (zhenggen-xu#46)
```
#### How I did it
* Advanced submodules pointers

#### How to verify it
1. make configure PLATFORM=mellanox
2. make target/sonic-mellanox.bin
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Aug 9, 2022
64caafe38 [driver_macsec_sonic]: Fixing missing zeros at the beginning of SCI (zhenggen-xu#52)

Signed-off-by: Ze Gan <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants