RouterOS 001: RouterOS sim via containerlab (mikrotik_chr, RB5009 port names) #63
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac#63
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #43
Rewritten 2026-11-13. The sim runs on any workstation with containerlab, not on mini. Sim tooling landed with this issue's PR (
routeros/sim/,task sim:*).Decision
mikrotik_chrkind, using MikroTik's officialmikrotik/chrimage unchanged (no vrnetlab build). Pinned to the hardware RouterOS version, currentlymikrotik/chr:7.25.1.Proven on arch-ws (2026-11-13)
task sim:up: r1, r2 (RB5009 stand-ins) and isp (PPPoE server) all healthy in about 40 s, event-driven wait (scripts/sim-wait-healthy.sh).ether1belongs to containerlab (management,mgmtVRF). Data NICs are ether2+.routeros/sim/rename.rsc, loaded as each node'sstartup-config, renames them bydefault-name: ether1 toclab-mgmt, ether2-9 toether1-8, ether10 tosfp-sfpplus1. Device config is identical in sim and on hardware. The names survive/system reboot, and the launcher stays healthy.mgmtitself is taken (the VRF), henceclab-mgmt.http://172.31.255.{11,12,2}, admin:admin, RouterOS 7.25.1.containerlab features that close other tickets
startup-config:imports an.rscover REST and fails the node with RouterOS's own line-numbered error. That is the import half of the round-trip gate (#70).containerlab savewrites each node's/exportminus the management entries. That is the export half for route B of #70.Remaining
routeros/sim/Terraform root (#65): local state, endpoints hard-coded to 172.31.255.0/24, per the AGENTS.md simulator exceptionbridgenode shared by r1, r2 and a Linux client, for VRRP (#46) and DHCP checks. The same host bridges let machine-configs harness VMs attach (machine-configs#31).Consumer: lab/machine-configs#31 puts NixOS harness VMs and RouterOS stand-ins on shared virtual L2 segments (ADR-0011 VIP failover, router reboot vs hosts). It should reuse this rig's image and pinned RouterOS version rather than pin its own. Open point for both: the stand-ins must share L2 with the harness VMs, so where they run (harness host vs mini) matters.
RouterOS 001: Containerized RouterOS (CHR) sim rig on minito RouterOS 001: RouterOS sim via containerlab (mikrotik_chr, RB5009 port names)ADR-0009: the sim's CHRs get OpenBao-issued
www-sslcerts from the harness OpenBao (#85), and the provider verifies them against the harness root. No self-signed and noinsecurein sim either.Done. Sim tooling landed with its PR: routeros/sim/ + task sim:* (mikrotik_chr 7.25.1), 3-server clab lab green (e25c820), used continuously since (bootstrap #64, rollback #74 A-E, parity gates). Reset-slot and failover behavior subsequently proven on real RB5009/crs309 hardware 2026-11-16.