mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-12-01 21:53:42 +00:00
[yang]Update port yang model, change MTU range to [68,9216] (#12223)
What I did Filter port invalid MTU configuration How I did it Adjust the MTU value to the range of [68,9216] How to verify it Use "config interface mtu Ethernet1 40" command to configure the port MTU. The following error will occur in SWSS.
This commit is contained in:
committed by
GitHub
parent
e2ae965fdd
commit
094646c6bc
@@ -13,6 +13,12 @@
|
|||||||
"eStrKey" : "Pattern",
|
"eStrKey" : "Pattern",
|
||||||
"eStr": ["rc"]
|
"eStr": ["rc"]
|
||||||
},
|
},
|
||||||
|
"PORT_VALID_MTU_TEST_1": {
|
||||||
|
"desc": "PORT_VALID_MTU_TEST_1 no failure."
|
||||||
|
},
|
||||||
|
"PORT_VALID_MTU_TEST_2": {
|
||||||
|
"desc": "PORT_VALID_MTU_TEST_2 no failure."
|
||||||
|
},
|
||||||
"PORT_VALID_AUTONEG_TEST_1": {
|
"PORT_VALID_AUTONEG_TEST_1": {
|
||||||
"desc": "PORT_VALID_AUTONEG_TEST_1 no failure."
|
"desc": "PORT_VALID_AUTONEG_TEST_1 no failure."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -39,6 +39,36 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"PORT_VALID_MTU_TEST_1": {
|
||||||
|
"sonic-port:sonic-port": {
|
||||||
|
"sonic-port:PORT": {
|
||||||
|
"PORT_LIST": [
|
||||||
|
{
|
||||||
|
"name": "Ethernet8",
|
||||||
|
"alias": "eth8",
|
||||||
|
"lanes": "65",
|
||||||
|
"speed": 25000,
|
||||||
|
"mtu": 68
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PORT_VALID_MTU_TEST_2": {
|
||||||
|
"sonic-port:sonic-port": {
|
||||||
|
"sonic-port:PORT": {
|
||||||
|
"PORT_LIST": [
|
||||||
|
{
|
||||||
|
"name": "Ethernet8",
|
||||||
|
"alias": "eth8",
|
||||||
|
"lanes": "65",
|
||||||
|
"speed": 25000,
|
||||||
|
"mtu": 9216
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"PORT_VALID_AUTONEG_TEST_1": {
|
"PORT_VALID_AUTONEG_TEST_1": {
|
||||||
"sonic-port:sonic-port": {
|
"sonic-port:sonic-port": {
|
||||||
"sonic-port:PORT": {
|
"sonic-port:PORT": {
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ module sonic-port{
|
|||||||
|
|
||||||
leaf mtu {
|
leaf mtu {
|
||||||
type uint16 {
|
type uint16 {
|
||||||
range 1..9216;
|
range 68..9216;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user