Skip to content
Open
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
16 changes: 16 additions & 0 deletions models/yang/sonic/common/sonic-extension.yang
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ module sonic-extension {
"Initial revision.";
}

extension create-only {
description
"During an apply-patch operation, indicates that a node can only be created
or re-created (i.e., deleted and re-added) but cannot be updated in-place.
Any update to a node carrying this extension is realized as a deletion and
recreation of the corresponding object.

This extension can be defined under:
- leaf or leaf-list: The immutability restriction applies specifically to this field.
- container or list: The restriction applies to the entire container/list, meaning
a change to any field within it triggers a deletion and recreation of the entire entry
(e.g., [table, '*', '*']).
- grouping: The restriction applies to the target leaf/leaf-list at every 'uses' site where
the grouping is expanded.";
}

extension db-name {
description
"DB name, e.g. APPL_DB, CONFIG_DB";
Expand Down
2 changes: 1 addition & 1 deletion models/yang/version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
-->
<yang-bundle-version>
<Major>1</Major>
<Minor>0</Minor>
<Minor>1</Minor>
<Patch>0</Patch>
</yang-bundle-version>

Expand Down