-
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
[DPB][YANG] extended yang-model - added 'buffer_model' field #6464
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,18 @@ module sonic-device_metadata { | |
pattern "ToRRouter|LeafRouter|SpineChassisFrontendRouter|ChassisBackendRouter|ASIC"; | ||
} | ||
} | ||
|
||
leaf buffer_model { | ||
description "This leaf is added for dynamic buffer calculation. | ||
The dynamic model represents the model in which the buffer configurations, | ||
like the headroom sizes and buffer pool sizes, are dynamically calculated based | ||
on the ports' speed, cable length, and MTU. This model is used by Mellanox so far. | ||
The traditional model represents the model in which all the buffer configurations | ||
are statically configured in CONFIG_DB tables. This is the default model used by all other vendors"; | ||
type string { | ||
pattern "dynamic|traditional"; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please add description for this leaf to describe the function name. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @lguohan, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, can you add description field in the leaf node? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. description: "" check other yang mode examples, they have added description. |
||
} | ||
/* end of container localhost */ | ||
} | ||
|
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.
Example for Description:
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.
Done