- Add comprehensive test scripts for multi-series dongle configuration - Add debugging tools for deployment and flow testing - Add configuration verification and guide utilities - Fix stdout/stderr handling in deployment dialog for PyInstaller builds - Includes port ID configuration tests and multi-series config validation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
1.6 KiB
Python
41 lines
1.6 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Verify that properties are correctly set for multi-series
|
|
"""
|
|
|
|
def verify_properties():
|
|
"""Check the expected multi-series properties"""
|
|
|
|
print("Multi-Series Configuration Checklist:")
|
|
print("=" * 50)
|
|
|
|
print("\n1. In your Dashboard, Model Node properties should have:")
|
|
print(" ✓ multi_series_mode = True")
|
|
print(" ✓ enabled_series = ['520', '720']")
|
|
print(" ✓ kl520_port_ids = '28,32'")
|
|
print(" ✓ kl720_port_ids = '4'")
|
|
print(" ✓ assets_folder = (optional, for auto model/firmware detection)")
|
|
|
|
print("\n2. After setting these properties, when you deploy:")
|
|
print(" Expected output should show:")
|
|
print(" '[stage_1_Model_Node] Using multi-series mode with config: ...'")
|
|
print(" NOT: 'Single-series config converted to multi-series format'")
|
|
|
|
print("\n3. If you still see single-series behavior:")
|
|
print(" a) Double-check property names (they should be lowercase)")
|
|
print(" b) Make sure multi_series_mode is checked/enabled")
|
|
print(" c) Verify port IDs are comma-separated strings")
|
|
print(" d) Save the .mflow file and re-deploy")
|
|
|
|
print("\n4. Property format reference:")
|
|
print(" - kl520_port_ids: '28,32' (string, comma-separated)")
|
|
print(" - kl720_port_ids: '4' (string)")
|
|
print(" - enabled_series: ['520', '720'] (list)")
|
|
print(" - multi_series_mode: True (boolean)")
|
|
|
|
print("\n" + "=" * 50)
|
|
print("If properties are set correctly, your deployment should use")
|
|
print("true multi-series load balancing across KL520 and KL720 dongles!")
|
|
|
|
if __name__ == "__main__":
|
|
verify_properties() |