refactor: implement centralized cache key management and add utility traits for vCenter SSH operations.

This commit is contained in:
pbao9
2026-05-16 16:52:21 +07:00
parent 06dbd54ecd
commit 8a115c5175
36 changed files with 1694 additions and 517 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ param(
[string]$VMName,
[string]$IP,
[int]$MaskBits,
[string]$Gateway,
[string]$DNS,
@@ -43,7 +44,7 @@ try {
# ✅ CHANGE IP (clean)
$script = @"
ip addr flush dev $iface
ip addr add $IP/24 dev $iface
ip addr add $IP/$MaskBits dev $iface
ip route replace default via $Gateway
echo "nameserver $DNS" > /etc/resolv.conf
"@