Commit 8bc7aee
authored
Allowing the first time FEC and AN configuration to be pushed to SAI (sonic-net#1705)
**What I did**
Allowing the first time configuration for FEC and Autoneg to be pushed to SAI even if they are default.
**Why I did it**
In orchagent, the port struct is pre-initialized with fec = none and autoneg = false (Default SAI values). However in different hardware the underlying implementation might be different. There can also be requirement where the user values need to be forced. In current logic due to the port struct being initialized with default, fec = none or an = false configurations are not pushed from orchagent to SAI. In order to push it even in default case the conditional checks are modified.1 parent d0dd6ee commit 8bc7aee
File tree
4 files changed
+52
-2
lines changed- orchagent
- tests
4 files changed
+52
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2564 | 2564 | | |
2565 | 2565 | | |
2566 | 2566 | | |
2567 | | - | |
| 2567 | + | |
2568 | 2568 | | |
2569 | 2569 | | |
2570 | 2570 | | |
2571 | 2571 | | |
2572 | 2572 | | |
| 2573 | + | |
2573 | 2574 | | |
2574 | 2575 | | |
2575 | 2576 | | |
| |||
2702 | 2703 | | |
2703 | 2704 | | |
2704 | 2705 | | |
2705 | | - | |
| 2706 | + | |
2706 | 2707 | | |
2707 | 2708 | | |
2708 | 2709 | | |
| |||
2716 | 2717 | | |
2717 | 2718 | | |
2718 | 2719 | | |
| 2720 | + | |
2719 | 2721 | | |
2720 | 2722 | | |
2721 | 2723 | | |
| |||
2733 | 2735 | | |
2734 | 2736 | | |
2735 | 2737 | | |
| 2738 | + | |
2736 | 2739 | | |
2737 | 2740 | | |
2738 | 2741 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
73 | 95 | | |
74 | 96 | | |
75 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
9 | 32 | | |
10 | 33 | | |
11 | 34 | | |
| |||
0 commit comments