Files
bf-infra/routeros/tp25-schritt1-3-ap1.rsc

36 lines
2.6 KiB
Plaintext

# TP25 Schritt 1-3 auf ap1 — identisch zu ap2, mit der auf ap2 verifizierten Syntax.
#
# Reihenfolge bewusst: ap2 war zuerst (weniger kritisch), dort ist die Syntax
# am Geraet belegt. ap1 folgt erst jetzt.
#
# ⚠️ ap1 MUSS mit, sonst bleibt die Ueberlappung: ap1 auf 5180 mit 80 MHz
# belegt 5170-5250 und damit auch ap2s neue 40-MHz-Zelle bei 5220.
# Ziel: ap1 = 5180/Ce (ch36+40, 5170-5210), ap2 = 5220/Ce (ch44+48,
# 5210-5250). Benachbart, ueberlappungsfrei, beide 18 dBm.
#
# ap1-Besonderheit: w2-iot traegt hier ZUSAETZLICH channel.band=2ghz-n gegen
# einen 2ghz-ax-Master — der eigentliche Fund D. Deshalb !channel.band mit dabei.
#
# Push: python3 nautobot/gc-manual-plan.py --device ap1 \
# --commands-file routeros/tp25-schritt1-3-ap1.rsc \
# --change-id TP25-Funkparameter-ap1 --deploy
# Backup davor: ap1-pre-tp25-20260817.backup
# --- Schritt 3 zuerst: Profil auf Sollwert, damit das Leeren unten direkt greift
:do { /interface/wifi/channel/set [find name=ch-5g] frequency=5180 width=20/40mhz } on-error={ :log info "tp25a1: 01 ch-5g warf" }
:do { /interface/wifi/channel/set [find name=ch-2g] frequency=2412 width=20mhz } on-error={ :log info "tp25a1: 02 ch-2g warf" }
# --- Schritt 2: Inline-Overrides einzeln leeren (!channel allein tut NICHTS) -
:do { /interface/wifi/set [find default-name=wifi1] !channel.width } on-error={ :log info "tp25a1: 03 wifi1 !width warf" }
:do { /interface/wifi/set [find default-name=wifi1] !channel.band } on-error={ :log info "tp25a1: 04 wifi1 !band warf" }
:do { /interface/wifi/set [find default-name=wifi1] !channel.skip-dfs-channels } on-error={ :log info "tp25a1: 05 wifi1 !skipdfs warf" }
:do { /interface/wifi/set [find default-name=wifi2] !channel.width } on-error={ :log info "tp25a1: 06 wifi2 !width warf" }
:do { /interface/wifi/set [find default-name=wifi2] !channel.band } on-error={ :log info "tp25a1: 07 wifi2 !band warf" }
:do { /interface/wifi/set [find default-name=wifi2] !channel.skip-dfs-channels } on-error={ :log info "tp25a1: 08 wifi2 !skipdfs warf" }
# --- Schritt 1: Fund D — Slave-VAP-Override weg -----------------------------
:do { /interface/wifi/set [find name=w2-iot] !channel.width } on-error={ :log info "tp25a1: 09 w2-iot !width warf" }
:do { /interface/wifi/set [find name=w2-iot] !channel.band } on-error={ :log info "tp25a1: 10 w2-iot !band warf" }
:log info ("tp25a1: wifi1-width=" . [:tostr [/interface/wifi/get [find default-name=wifi1] channel.width]] . " wifi2-width=" . [:tostr [/interface/wifi/get [find default-name=wifi2] channel.width]] . " w2iot-band=" . [:tostr [/interface/wifi/get [find name=w2-iot] channel.band]])