[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:
Sudharsan Dhamal Gopalarathnam 2023-09-23 00:47:20 -07:00 committed by GitHub
parent d60cc7dfaa
commit 73958246eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 2 deletions

View File

@ -869,7 +869,7 @@
"alias": "Eth31/1",
"lanes": "121,122",
"description": "",
"fec": "fc",
"fec": "auto",
"speed": "11100",
"tpid": "0x8100",
"admin_status": "up"

View File

@ -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."
}
}

View File

@ -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
}
]
}
}
}
}

View File

@ -151,7 +151,7 @@ module sonic-port{
leaf fec {
type string {
pattern "rs|fc|none";
pattern "rs|fc|none|auto";
}
}