-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[yang] add Yang model for MUX_LINKMGR|LINK_PROBER
#15384
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/sonic-yang-models/tests/yang_model_tests/tests/mux-linkmgr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"MUX_LINKMGR_LINK_PROBER_INTERVAL_CHANGE": { | ||
"desc": "Consume ICMP heartbeat interval and timeout config changes. " | ||
}, | ||
"MUX_LINKMGR_LINK_PROBER_CHANGE_MAC_ADDR": { | ||
"desc": "Use well-known mac and vlan mac as dst/src in linkmgrd link prober. " | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/sonic-yang-models/tests/yang_model_tests/tests_config/mux-linkmgr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"MUX_LINKMGR_LINK_PROBER_INTERVAL_CHANGE": { | ||
"sonic-mux-linkmgr:sonic-mux-linkmgr": { | ||
"sonic-mux-linkmgr:MUX_LINKMGR": { | ||
"sonic-mux-linkmgr:LINK_PROBER": | ||
{ | ||
"interval_v4": "1000", | ||
"interval_v6": "10000", | ||
"positive_signal_count": 3, | ||
"negative_signal_count": 9 | ||
} | ||
} | ||
} | ||
}, | ||
"MUX_LINKMGR_LINK_PROBER_CHANGE_MAC_ADDR": { | ||
"sonic-mux-linkmgr:sonic-mux-linkmgr": { | ||
"sonic-mux-linkmgr:MUX_LINKMGR": { | ||
"sonic-mux-linkmgr:LINK_PROBER": | ||
{ | ||
"use_well_known_mac": "enabled", | ||
"src_mac": "VlanMac" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
module sonic-mux-linkmgr { | ||
namespace "http://github.com/sonic-net/sonic-mux-linkmgr"; | ||
prefix mux_linkmgr; | ||
yang-version 1.1; | ||
|
||
organization | ||
"SONiC"; | ||
|
||
contact | ||
"SONiC"; | ||
|
||
description | ||
"SONiC DualToR Linkmgrd configuration data"; | ||
|
||
revision 2023-06-07 { | ||
description | ||
"Initial revision"; | ||
} | ||
|
||
container sonic-mux-linkmgr { | ||
|
||
container MUX_LINKMGR { | ||
|
||
container LINK_PROBER { | ||
|
||
leaf interval_v4 { | ||
type uint32; | ||
default 100; | ||
units milliseconds; | ||
|
||
description "IPv4 ICMP heartbeat interval. "; | ||
} | ||
|
||
leaf interval_v6 { | ||
type uint32; | ||
default 1000; | ||
units milliseconds; | ||
|
||
description "IPv6 ICMP heartbeat interval. "; | ||
} | ||
|
||
leaf positive_signal_count { | ||
type uint32; | ||
default 1; | ||
|
||
description "Linkmgrd positive signal count. "; | ||
} | ||
|
||
leaf negative_signal_count { | ||
type uint32; | ||
default 3; | ||
|
||
description "Linkmgrd negative signal count. "; | ||
} | ||
|
||
leaf suspend_timer { | ||
type uint32; | ||
|
||
description "ICMP heartbeat suspending timer, currently not in use. "; | ||
} | ||
|
||
leaf use_well_known_mac { | ||
type enumeration { | ||
enum enabled; | ||
enum disabled; | ||
} | ||
|
||
description "ICMP heartbeat use well known mac as dst mac or not. "; | ||
} | ||
|
||
leaf src_mac { | ||
type enumeration { | ||
enum ToRMac; | ||
enum VlanMac; | ||
} | ||
|
||
description "ICMP heartbeat use what mac as src mac. "; | ||
} | ||
|
||
leaf interval_pck_loss_count_update { | ||
type uint32; | ||
|
||
description "The frequency of streaming ICMP heartbeat loss data to telemetry. "; | ||
} | ||
} | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
MUXLOGGER
missed here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will create a separate PR for MUXLOGGER.