Development
This commit is contained in:
parent
8303eb5397
commit
a4eb431f22
11 changed files with 744 additions and 1 deletions
|
|
@ -97,6 +97,7 @@ from pathlib import Path
|
|||
|
||||
import health as health
|
||||
import mod_avahi as avahi
|
||||
import mod_captive as captive
|
||||
import mod_dnsmasq as dnsmasq
|
||||
import mod_metrics as metrics
|
||||
import mod_networkd as networkd
|
||||
|
|
@ -816,6 +817,15 @@ def cmd_apply(data, dry_run=False):
|
|||
avahi.disable_avahi()
|
||||
print()
|
||||
|
||||
print("Captive portal ==============================================")
|
||||
if captive.captive_portal_enabled(data):
|
||||
timers.install_captive_timers()
|
||||
print("Captive portal enabled - timers installed.")
|
||||
else:
|
||||
timers.remove_captive_timers()
|
||||
print("No captive portal VLANs - timers removed.")
|
||||
print()
|
||||
|
||||
print("Done.")
|
||||
|
||||
healthy, status = health.run_and_write(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue