-
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]: Update DEVICE_METADATA yang models to support 'sub_role' #10161
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 |
---|---|---|
|
@@ -127,6 +127,11 @@ module sonic-device_metadata { | |
type string; | ||
} | ||
|
||
leaf sub_role { | ||
type string; | ||
description "sub_role indicates if ASIC is FrondEnd or BackEnd."; | ||
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. Does the field take FrontEnd or BackEnd alone? If yes should we restrict it with pattern? 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. I have only seen one example with 'FrondEnd'. I also checked design doc. Seems 'Backend' and 'Frontend' are valid. https://github.com/Azure/SONiC/blob/master/doc/multi_asic/SONiC_multi_asic_hld.md#2432-device_metadata I am not sure if I should restrict it with the pattern 'Front[Ee]nd|Back[Ee]nd' or simply a string instead. |
||
} | ||
|
||
leaf downstream_subrole { | ||
type string; | ||
} | ||
|
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.
Please add 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.
Hi @venkatmahalingam Could you provide a description message?
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.
Could use the description provided here: https://github.com/Azure/SONiC/blob/master/doc/multi_asic/SONiC_multi_asic_hld.md#2432-device_metadata