Skip to content

[YANG] add yang model for MUX_LINKMGR|MUXLOGGER #15884

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 2 commits into from
Jul 20, 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 @@ -1439,6 +1439,9 @@ The **MUX_LINKMGR** table is used for dualtor device configuration.
"use_well_known_mac": "enabled",
"src_mac": "ToRMac",
"interval_pck_loss_count_update": "3"
},
"MUXLOGGER": {
"log_verbosity": "debug"
}
}
}
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 @@ -2153,6 +2153,9 @@
"use_well_known_mac": "enabled",
"src_mac": "ToRMac",
"interval_pck_loss_count_update": "3"
},
"MUXLOGGER": {
"log_verbosity": "debug"
}
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
},
"MUX_LINKMGR_LINK_PROBER_CHANGE_MAC_ADDR": {
"desc": "Use well-known mac and vlan mac as dst/src in linkmgrd link prober. "
},
"MUX_LINKMGR_MUXLOGGER_CHANGE_VERBOSITY_LEVEL": {
"desc": "Consume verbosity level config changes. "
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,15 @@
}
}
}
},
"MUX_LINKMGR_MUXLOGGER_CHANGE_VERBOSITY_LEVEL": {
"sonic-mux-linkmgr:sonic-mux-linkmgr": {
"sonic-mux-linkmgr:MUX_LINKMGR": {
"sonic-mux-linkmgr:MUXLOGGER":
{
"log_verbosity": "debug"
}
}
}
}
}
15 changes: 15 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 @@ -83,6 +83,21 @@ module sonic-mux-linkmgr {
description "The frequency of streaming ICMP heartbeat loss data to telemetry. ";
}
}

container MUXLOGGER {

leaf log_verbosity {
type enumeration {
enum trace;
enum debug;
enum info;
enum error;
enum fatal;
}

description "Linkmgrd log verbosity level. ";
}
}
}
}
}