[yang] Update sonic-port yang model to support auto FEC (#16389)
To support 'auto' configuration option for FEC in yang model
This commit is contained in:
parent
d60cc7dfaa
commit
73958246eb
@ -869,7 +869,7 @@
|
||||
"alias": "Eth31/1",
|
||||
"lanes": "121,122",
|
||||
"description": "",
|
||||
"fec": "fc",
|
||||
"fec": "auto",
|
||||
"speed": "11100",
|
||||
"tpid": "0x8100",
|
||||
"admin_status": "up"
|
||||
|
@ -128,5 +128,8 @@
|
||||
"desc": "Out of range subport number",
|
||||
"eStrKey": "Range",
|
||||
"eStr": "0..8"
|
||||
},
|
||||
"PORT_AUTO_FEC_TEST": {
|
||||
"desc": "PORT_AUTO_FEC_TEST validate auto mode in fec."
|
||||
}
|
||||
}
|
||||
|
@ -638,5 +638,24 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"PORT_AUTO_FEC_TEST": {
|
||||
"sonic-port:sonic-port": {
|
||||
"sonic-port:PORT": {
|
||||
"PORT_LIST": [
|
||||
{
|
||||
"admin_status": "up",
|
||||
"alias": "eth8",
|
||||
"description": "Ethernet8",
|
||||
"fec": "auto",
|
||||
"lanes": "65",
|
||||
"mtu": 9000,
|
||||
"name": "Ethernet8",
|
||||
"speed": 25000
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ module sonic-port{
|
||||
|
||||
leaf fec {
|
||||
type string {
|
||||
pattern "rs|fc|none";
|
||||
pattern "rs|fc|none|auto";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user