Skip to content

Commit 90fe5de

Browse files
{yang_models]: Updated SONiC YANG extensions as per guidelines.
1 parent 5cdfcdf commit 90fe5de

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

src/sonic-yang-models/yang-models/sonic-extension.yang

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,10 @@ module sonic-extension {
4444
argument "value";
4545
}
4646

47-
extension map-list {
48-
description "If it is a map list";
49-
argument "value";
50-
}
51-
5247
extension map-leaf {
53-
description "Map leaf names";
48+
description
49+
"Extension to indicate nested list and specify fields
50+
mappings which are keys of inner list";
5451
argument "value";
5552
}
5653

@@ -61,7 +58,7 @@ module sonic-extension {
6158

6259
extension dependent-on {
6360
description
64-
"Entension to define dependency on other table. During create/update,
61+
"Extension to define dependency on other table. During create/update,
6562
operation will be performed first on parent table and then on this table.
6663
In delete operation, this table will be deleted first and then parent table.
6764
This extension can be defined only under list. Table name should always

src/sonic-yang-models/yang-models/sonic-types.yang

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,16 @@ module sonic-types {
148148
"Integer indicating a percentage value";
149149
}
150150

151-
// Defined as container because it will be used as xpath in MUST/WHEN
152-
// expressions in yang.
153-
container operation {
154-
leaf operation {
155-
type enumeration {
156-
enum CREATE;
157-
enum UPDATE;
158-
enum DELETE;
159-
}
160-
}
161-
description "Sonic data operation types required during validation";
162-
}
151+
// Defined as container because it will be used as xpath in MUST/WHEN
152+
// expressions in yang.
153+
container operation {
154+
leaf operation {
155+
type enumeration {
156+
enum CREATE;
157+
enum UPDATE;
158+
enum DELETE;
159+
}
160+
}
161+
description "Sonic data operation types required during validation";
162+
}
163163
}

0 commit comments

Comments
 (0)