Skip to content

[YANG] add MUX_LINKMGR|SERVICE_MGMT #15927

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

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/sonic-yang-models/doc/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,9 @@ The **MUX_LINKMGR** table is used for dualtor device configuration.
},
"MUXLOGGER": {
"log_verbosity": "debug"
},
"SERVICE_MGMT": {
"kill_radv": "True"
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -2156,6 +2156,9 @@
},
"MUXLOGGER": {
"log_verbosity": "debug"
},
"SERVICE_MGMT": {
"kill_radv": "False"
}
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
},
"MUX_LINKMGR_MUXLOGGER_CHANGE_VERBOSITY_LEVEL": {
"desc": "Consume verbosity level config changes. "
},
"MUX_LINKMGR_SERVICE_MGMT_KILL_RADV_DISABLED": {
"desc": "Disable feature to kill radv."
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,15 @@
}
}
}
},
"MUX_LINKMGR_SERVICE_MGMT_KILL_RADV_DISABLED": {
"sonic-mux-linkmgr:sonic-mux-linkmgr": {
"sonic-mux-linkmgr:MUX_LINKMGR": {
"sonic-mux-linkmgr:SERVICE_MGMT":
{
"kill_radv": "False"
}
}
}
}
}
14 changes: 14 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-mux-linkmgr.yang
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ module sonic-mux-linkmgr {
description "Linkmgrd log verbosity level. ";
}
}

container SERVICE_MGMT {

leaf kill_radv {
type enumeration {
Copy link
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
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.

enum True;
enum False;
}

default True;

description "Kill radv service instead of gracefully stopping it. ";
}
}
}
}
}