change: retire the last log scraping #91
Loading…
Reference in a new issue
No description provided.
Delete branch "change/retire-log-parsing"
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?
Problem
Follow-up to #90: three free-form text scrapes remained after the management-interface migration.
parse_tun_devicestill read the log for raw custom configs (and for tap configs, whose namewrite_configsaw and threw away); the stdout loop waited on aSIGTERM[hard,]sentinel that a real exit never prints; andmonitor.pysplitip routeoutput positionally — the same failure class that broke the 2.7 log parse.Fix
write_configreturns a tap config's own name; a raw config'sdevdirective is read pre-launch, and a bare/missing one gets a name assigned via--devon the command line (later options beat--config).parse_tun_deviceis deleted.monitor.pyreads the default route withip -j+ JSON, matching the bypass pin in tunnel.py.Verification
TestConfigTunDevicecovers concrete/bare/missingdevdirectives, per-role assignment, and the bare-tap case (a tap config must not get atun_*name — the prefix carries the device type).SIGTERM[soft,exit-with-notification].ip -j route show defaultfield names (gateway,dev) verified against the live host.