You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sonic-utils: initial support for link-training (sonic-net#2071)
HLD: sonic-net/SONiC#925
#### What I did
Add CLI support for link-trainig
#### How I did it
1. portconfig: initial support for link-training config
2. config/main.py: initial support for link-training config
3. intfutil: initial support for link-training show command
4. show/interfaces/__init__.py: initial support for link-training show command
#### How to verify it
1. Manual test
2. Ran the Unit-tests to the corresponding changes
#### 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)
```
admin@sonic:~$ sudo config interface link-training Ethernet0 on
admin@sonic:~$ sudo config interface link-training Ethernet8 on
admin@sonic:~$ sudo config interface link-training Ethernet16 off
admin@sonic:~$ sudo config interface link-training Ethernet24 on
admin@sonic:~$ sudo config interface link-training Ethernet32 off
admin@sonic:~$ show interfaces link-training status
Interface LT Oper LT Admin Oper Admin
----------- ----------- ---------- ------ -------
Ethernet0 trained on up up
Ethernet8 trained on up up
Ethernet16 off off down up
Ethernet24 not trained on down up
Ethernet32 off off down up
Ethernet40 off - down up
Ethernet48 off - down up
Ethernet56 off - down up
Ethernet64 off - down up
Ethernet72 off - down up
Ethernet80 off - down up
Ethernet88 off - down up
Ethernet96 off - down up
Ethernet104 off - down up
Ethernet112 off - down up
Ethernet120 off - down up
Ethernet128 off - down up
Ethernet136 off - down up
Ethernet144 off - down up
Ethernet152 off - down up
Ethernet160 off - down up
Ethernet168 off - down up
Ethernet176 off - down up
Ethernet184 off - down up
Ethernet192 off - down up
Ethernet200 off - down up
Ethernet208 off - down up
Ethernet216 off - down up
Ethernet224 off - down up
Ethernet232 off - down up
Ethernet240 off - down up
Ethernet248 off - down up
admin@sonic:~$
```
# Cause other tests depend and change these paths in the mock_db, this test would fail everytime when a field or a value in changed in this path, creating noise
0 commit comments