Commit 4636645
committed
fix(tn-manager): Round 13 - Fix method signature mismatches
Fixed all method signature mismatches in TN Manager advanced features:
1. NetworkState getters (enhanced_types.go):
- GetSliceVXLANConfigs(nodeID) - Returns VXLAN configs for node
- GetSliceQoSStrategies(nodeID) - Returns QoS strategies for node
- GetSlicesUsingNode(nodeID) - Lists slices using a node
- GetTopology() - Returns current network topology
- GetActiveSlices() - Returns list of active slices
- GetVXLANStatus() - Returns VXLAN status for all slices
- GetFaultsSummary() - Returns summary of active/recent faults
2. TopologyDiscovery (enhanced_types.go):
- CompareAndNotifyChanges(newTopology) - Changed from 3 params to 1
- Implemented topology comparison logic
3. FaultDetector (enhanced_types.go):
- StartMonitoring(ctx, agents, faultCallback) - Fixed signature
- Implemented background fault monitoring with goroutine
- Added automatic fault detection and callback notification
4. TNAgentClient (client.go):
- RestartVXLAN(configs map[string]interface{}) - Fixed to use map
5. Enhanced Manager (enhanced_manager.go):
- Fixed all method calls to match new signatures
- Added nodeID parameters to GetSliceVXLANConfigs/GetSliceQoSStrategies
- Fixed RestartVXLAN to use map[string]interface{} conversion
- Updated type conversions for FaultType and TNEventType
All method signatures now properly align with their usage throughout
the codebase. These fixes complete the TN Manager advanced orchestration
implementation with proper thread-safety and fault recovery.
Resolves: tn-integration test compilation errors1 parent 5b35bdf commit 4636645
2 files changed
Lines changed: 93 additions & 66 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
| 384 | + | |
384 | 385 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
389 | 393 | | |
390 | 394 | | |
391 | 395 | | |
| |||
409 | 413 | | |
410 | 414 | | |
411 | 415 | | |
412 | | - | |
| 416 | + | |
413 | 417 | | |
414 | 418 | | |
415 | 419 | | |
| |||
447 | 451 | | |
448 | 452 | | |
449 | 453 | | |
450 | | - | |
| 454 | + | |
451 | 455 | | |
452 | 456 | | |
453 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
446 | | - | |
| 445 | + | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
483 | 454 | | |
484 | 455 | | |
485 | 456 | | |
| |||
494 | 465 | | |
495 | 466 | | |
496 | 467 | | |
497 | | - | |
| 468 | + | |
498 | 469 | | |
499 | 470 | | |
500 | 471 | | |
501 | 472 | | |
502 | 473 | | |
503 | | - | |
| 474 | + | |
504 | 475 | | |
505 | 476 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
527 | 503 | | |
528 | 504 | | |
| 505 | + | |
529 | 506 | | |
530 | | - | |
531 | 507 | | |
532 | 508 | | |
533 | 509 | | |
534 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
535 | 523 | | |
536 | 524 | | |
537 | 525 | | |
| |||
642 | 630 | | |
643 | 631 | | |
644 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
0 commit comments