Skip to content
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

Merged
merged 3 commits into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 2 additions & 1 deletion src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@
"asic_name": "Asic0",
"switch_id": "2",
"switch_type": "voq",
"max_cores": "8"
"max_cores": "8",
"sub_role": "FrondEnd"
}
},
"VLAN": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
},
"DEVICE_METADATA_CORRECT_VOQ_CONFIG": {
"desc": "Verifying VOQ configuration."
}
},
"DEVICE_METADATA_VALID_SUB_ROLE_CONFIG": {
"desc": "Verifying valid sub_role configuration."
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -274,5 +274,14 @@
}
}
}
},
"DEVICE_METADATA_VALID_SUB_ROLE_CONFIG": {
"sonic-device_metadata:sonic-device_metadata": {
"sonic-device_metadata:DEVICE_METADATA": {
"sonic-device_metadata:localhost": {
"sub_role": "FrontEnd"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ module sonic-device_metadata {
type string;
}

leaf sub_role {
type string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add description.

Copy link
Contributor Author

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

leaf downstream_subrole {
type string;
}
Expand Down