Files
proxmox/scripts/archive/consolidated/verify/verify-conversion.sh.bak
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

54 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Verify all IP conversions completed successfully
set -euo pipefail
echo "=== Verifying IP Conversions ==="
echo ""
# Expected conversions
declare -a EXPECTED=(
"192.168.11.10:3501:192.168.11.28:ccip-monitor-1"
"192.168.11.10:3500:192.168.11.29:oracle-publisher-1"
"192.168.11.12:103:192.168.11.30:omada"
"192.168.11.12:104:192.168.11.31:gitea"
"192.168.11.12:100:192.168.11.32:proxmox-mail-gateway"
"192.168.11.12:101:192.168.11.33:proxmox-datacenter-manager"
"192.168.11.12:102:192.168.11.34:cloudflared"
"192.168.11.12:6200:192.168.11.35:firefly-1"
"192.168.11.12:7811:192.168.11.36:mim-api-1"
)
success_count=0
fail_count=0
for conversion in "${EXPECTED[@]}"; do
IFS=':' read -r host_ip vmid expected_ip name <<< "$conversion"
# Get actual IP from config
actual_ip=$(ssh -o ConnectTimeout=5 root@"$host_ip" "pct config $vmid 2>/dev/null | grep '^net0:' | grep -oE 'ip=[^,]+' | cut -d= -f2 | cut -d'/' -f1" 2>/dev/null || echo "")
if [ "$actual_ip" = "$expected_ip" ]; then
echo "✓ VMID $vmid ($name): $expected_ip - OK"
success_count=$((success_count + 1))
else
echo "✗ VMID $vmid ($name): Expected $expected_ip, got $actual_ip - FAILED"
fail_count=$((fail_count + 1))
fi
done
echo ""
echo "=== Verification Summary ==="
echo "Successful: $success_count"
echo "Failed: $fail_count"
if [ $fail_count -eq 0 ]; then
echo ""
echo "✓ All conversions verified successfully!"
exit 0
else
echo ""
echo "✗ Some verifications failed"
exit 1
fi