完善start脚本,避免重复动态注册
This commit is contained in:
+4
-4
@@ -34,10 +34,10 @@ services:"""
|
||||
current_sn = f"{prefix}{current_num:04d}"
|
||||
|
||||
# --- 生成 CSV 行 ---
|
||||
# 格式: ${device_SN},Horseman-A21,H21.0.0.1,192.168.1.244,1883,mxpoty5rco1jhwde|${device_SN}|2,pykqg5qpzspfce3w,0,192.168.1.244,http://192.168.1.244/dlp/v1/device/backupAndRestore?sn=${device_SN},,
|
||||
# 格式: ${device_SN},Horseman-A21,H21.0.0.1,121.36.13.175,1883,mxpoty5rco1jhwde|${device_SN}|2,pykqg5qpzspfce3w,0,121.36.13.175,http://121.36.13.175/dlp/v1/device/backupAndRestore?sn=${device_SN},,
|
||||
|
||||
csv_line = (
|
||||
f"{current_sn},Horseman-A21,H21.0.0.1,192.168.1.244,1883,mxpoty5rco1jhwde|{current_sn}|2,pykqg5qpzspfce3w,0,192.168.1.244,http://192.168.1.244/dlp/v1/device/backupAndRestore?sn={current_sn}"
|
||||
f"{current_sn},Horseman-A21,H21.0.0.1,121.36.13.175,1885,mxpoty5rco1jhwde|{current_sn}|2,pykqg5qpzspfce3w,0,121.36.13.175"
|
||||
)
|
||||
csv_content.append(csv_line)
|
||||
|
||||
@@ -64,8 +64,8 @@ services:"""
|
||||
|
||||
if __name__ == "__main__":
|
||||
# --- 配置区域 ---
|
||||
START_SN = "YZXHRAX86NN2511250001" # 起始序列号
|
||||
COUNT = 166 # 需要生成的个数
|
||||
START_SN = "YZXHRAX86NN2604030001" # 起始序列号
|
||||
COUNT = 2 # 需要生成的个数
|
||||
# ----------------
|
||||
|
||||
generate_files(START_SN, COUNT)
|
||||
|
||||
Reference in New Issue
Block a user