Skip to content

[YANG] add MUX_LINKMGR|SERVICE_MGMT#15927

Merged
yxieca merged 1 commit intosonic-net:masterfrom
zjswhhh:service_mgmt_master
Aug 2, 2023
Merged

[YANG] add MUX_LINKMGR|SERVICE_MGMT#15927
yxieca merged 1 commit intosonic-net:masterfrom
zjswhhh:service_mgmt_master

Conversation

@zjswhhh
Copy link
Copy Markdown
Contributor

@zjswhhh zjswhhh commented Jul 20, 2023

Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT.

sign-off: Jing Zhang zhangjing@microsoft.com

Why I did it

Work item tracking
  • Microsoft ADO (number only): 18445751

How I did it

How to verify it

==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
rootdir: /sonic/src/sonic-yang-models
plugins: pyfakefs-5.2.3, cov-2.10.1
collected 3 items                                                                                                                                                                           

tests/test_sonic_yang_models.py ..                                                                                                                                                    [ 66%]
tests/yang_model_tests/test_yang_model.py .                                                                                                                                           [100%]

===================================================================================== 3 passed in 2.06s =====================================================================================

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

@zjswhhh zjswhhh requested a review from qiluo-msft as a code owner July 20, 2023 23:27
@zjswhhh zjswhhh requested review from ganglyu and yxieca July 20, 2023 23:28
container SERVICE_MGMT {

leaf kill_radv {
type enumeration {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use boolean instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONFIG_KNOB=`$SONIC_DB_CLI CONFIG_DB hget "MUX_LINKMGR|SERVICE_MGMT" kill_radv`
if [[ x"$CONFIG_KNOB" == x"False" ]]; then
ACTIVE_ACTIVE='false'
fi

Hi Gang - we have capitalized letters so I can't make the field as boolean.

@mssonicbld
Copy link
Copy Markdown
Collaborator

@zjswhhh PR conflicts with 202211 branch

@mssonicbld
Copy link
Copy Markdown
Collaborator

@zjswhhh PR conflicts with 202205 branch

@mssonicbld
Copy link
Copy Markdown
Collaborator

@zjswhhh PR conflicts with 202305 branch

@yxieca
Copy link
Copy Markdown
Contributor

yxieca commented Aug 7, 2023

Need to cherry-pick #15884 first.

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Aug 7, 2023
Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT.

sign-off: Jing Zhang zhangjing@microsoft.com
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202205: #16070

@mssonicbld
Copy link
Copy Markdown
Collaborator

@zjswhhh PR conflicts with 202211 branch

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Aug 7, 2023
Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT.

sign-off: Jing Zhang zhangjing@microsoft.com
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202211: #16071

@zjswhhh zjswhhh deleted the service_mgmt_master branch August 7, 2023 17:41
yxieca pushed a commit that referenced this pull request Aug 10, 2023
Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT.

sign-off: Jing Zhang zhangjing@microsoft.com

Co-authored-by: Jing Zhang <zhangjing@microsoft.com>
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Aug 14, 2023
Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT.

sign-off: Jing Zhang zhangjing@microsoft.com
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202305: #16138

mssonicbld pushed a commit that referenced this pull request Aug 16, 2023
Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT.

sign-off: Jing Zhang zhangjing@microsoft.com
mssonicbld pushed a commit that referenced this pull request Aug 16, 2023
Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT.

sign-off: Jing Zhang zhangjing@microsoft.com
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT.

sign-off: Jing Zhang zhangjing@microsoft.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants