interfaces: move legacy RFC2136 to plugin hook

We can't remove it now and we can't widen the call since local
and newwanip_map are mostly the same, but also different.

Use the selector trick to just invoke what we need and lose the
configd error.

PR: https://www.reddit.com/r/opnsense/comments/1fi5mw3/rfc2136_errors_in_audit_log/
This commit is contained in:
Franco Fichtner 2024-09-16 16:49:13 +02:00
parent 5c7f4ab166
commit 842075ca06

View File

@ -2527,8 +2527,8 @@ function interface_configure($verbose = false, $interface = 'wan', $reload = fal
plugins_configure('ipsec', $verbose, [$interface]);
plugins_configure('dhcp', $verbose);
plugins_configure('dns', $verbose);
/* XXX move this up the call stack */
configdp_run('rfc2136 reload', [$interface]);
/* XXX not ideal but avoids "errors" in the log */
plugins_configure('newwanip_map:rfc2136', $verbose, [$interface]);
}
/* XXX device dependency plugin hook */