Skip to content
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

portconfig option to configure Tx power and laser frequency of ZR tra… #2330

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

prgeor
Copy link
Contributor

@prgeor prgeor commented Aug 23, 2022

Cherry-pick of PR #2197

Added new configuration CLI options to configure Tx power and laser frequency of ZR transceiver module

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

root@sonic:~# portconfig -p Ethernet0 -P -28.3
Setting target Tx output power to -28.3 dBm on port Ethernet0
root@sonic:~# redis-cli -n 4 hgetall "PORT|Ethernet0" 
 1) "admin_status"
 2) "up"
 3) "alias"
 4) "Ethernet1/1"
 5) "index"
 6) "1"
 7) "lanes"
 8) "1,2,3,4,5,6,7,8"
 9) "laser_freq"
10) "1000"
11) "speed"
12) "400000"
13) "tx_power"
14) "-28.3"
root@sonic:~# 


root@sonic:~# portconfig -p Ethernet0 -F 191000
Setting laser frequency to 191000 GHz on port Ethernet0
root@sonic:~# redis-cli -n 4 hgetall "PORT|Ethernet0" 
 1) "admin_status"
 2) "up"
 3) "alias"
 4) "Ethernet1/1"
 5) "index"
 6) "1"
 7) "lanes"
 8) "1,2,3,4,5,6,7,8"
 9) "laser_freq"
10) "191000"
11) "speed"
12) "400000"
13) "tx_power"
14) "-28.3"
root@sonic:~# 

…nsceiver module (sonic-net#2197)

* New CLI option for configuring Xcvr frequency and Tx power

* portconfig changes to configure xcvr's frequency and laser power

* Added unit tests

* Added check for tx_power and freq

* Address review comment

* Address review comment
@prgeor
Copy link
Contributor Author

prgeor commented Aug 24, 2022

@yxieca @qiluo-msft could you approve and merge. This is a cherry-pick PR

@liat-grozovik liat-grozovik merged commit e0166a0 into sonic-net:202205 Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants