Commit 2f8dcb4
committed
fix(tn-manager): Round 15 - Fix field name and type assertion errors
Fixed the final 4 compilation errors in TN Manager:
1. enhanced_types.go (3 errors):
- Fixed endpoint.NodeID → endpoint.NodeName in GetSliceVXLANConfigs
- Fixed endpoint.NodeID → endpoint.NodeName in GetSliceQoSStrategies
- Fixed endpoint.NodeID → endpoint.NodeName in GetSlicesUsingNode
The embedded tnv1alpha1.Endpoint struct uses "NodeName" not "NodeID"
as defined in tn/manager/api/v1alpha1/tnslice_types.go
2. qos_manager.go (1 error):
- Removed invalid type assertion on queue.BurstSize
- BurstSize is already string type in QueueConfig struct
- Changed from: if currentBurst, ok := queue.BurstSize.(string); ok
- Changed to: if queue.BurstSize != ""
All TN Manager code now compiles successfully. Ready for integration testing.
Resolves: All tn-integration compilation errors1 parent f34233c commit 2f8dcb4
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
| 670 | + | |
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments