-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add YANG model for FABRIC_PORT #14282
Changes from all commits
64c0fdb
3306725
a392aa1
d9dca3b
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"FABRIC_PORT_POSITIVE_CONFIG": { | ||
"desc": "Configure FABRIC_PORT no failure." | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"FABRIC_PORT_POSITIVE_CONFIG": { | ||
"sonic-fabric-port:sonic-fabric-port": { | ||
"sonic-fabric-port:FABRIC_PORT": { | ||
"FABRIC_PORT_LIST": [ | ||
{ | ||
"name": "Fabric0", | ||
"alias": "Fabric0", | ||
"isolateStatus": "False", | ||
"lanes": "0" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
module sonic-fabric-port{ | ||
|
||
yang-version 1.1; | ||
|
||
namespace "http://github.com/sonic-net/sonic-fabric-port"; | ||
prefix fabric-port; | ||
|
||
description "FABRIC_PORT yang Module for SONiC OS"; | ||
|
||
revision 2023-03-14 { | ||
description "First Revision"; | ||
} | ||
|
||
container sonic-fabric-port { | ||
|
||
container FABRIC_PORT { | ||
|
||
description "FABRIC_PORT part of config_db.json"; | ||
|
||
list FABRIC_PORT_LIST { | ||
|
||
key "name"; | ||
|
||
leaf name { | ||
type string { | ||
length 1..128; | ||
} | ||
} | ||
|
||
leaf isolateStatus { | ||
description "Isolation status of a fabric port"; | ||
type string { | ||
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. if the 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. Added |
||
pattern "False|True"; | ||
} | ||
default "False"; | ||
} | ||
|
||
leaf alias { | ||
description "Alias of a fabric port"; | ||
type string { | ||
length 1..128; | ||
} | ||
} | ||
|
||
leaf lanes { | ||
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 think, the fabric port configuration without specifying 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. fixed. |
||
description "Lanes of a fabric port"; | ||
mandatory true; | ||
type string { | ||
length 1..128; | ||
} | ||
} | ||
|
||
} /* end of list FABRIC_PORT_LIST */ | ||
|
||
} /* end of container FABRIC_PORT */ | ||
|
||
} /* end of container sonic-fabric-port */ | ||
|
||
} /* end of module sonic-fabric-port */ |
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 of the leaf nodes
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.
Added