Obtain the actual management port speed from system file /sys/class/net/eth0/speed.
- What I did
Currently the management port speed was obtained from the "speed" value in "MGMT_PORT" table of config_db. However, this field has no actual function.
This PR is to obtain the actual management port speed from system file "/sys/class/net/eth0/speed".
- How I did it
Add a function to obtain the actual management port speed from system file "/sys/class/net/eth0/speed".
- How to verify it
Run snmpwalk to get if high speed, make sure the management port speed is correct.
Obtain the actual management port speed from system file /sys/class/net/eth0/speed.
- What I did Currently the management port speed was obtained from the "speed" value in "MGMT_PORT" table of config_db. However, this field has no actual function. This PR is to obtain the actual management port speed from system file "/sys/class/net/eth0/speed".
- How I did it Add a function to obtain the actual management port speed from system file "/sys/class/net/eth0/speed".
- How to verify it Run snmpwalk to get if high speed, make sure the management port speed is correct.
- Description for the changelog