- no more frontend code required
- much faster, since no api api calls are used
- reconfiguring vlans using paramiko exec_command
def reconfigure_vlans(helper):
stdin, stdout, stderr = helper.ssh.exec_command('/usr/local/opnsense/scripts/interfaces/reconfigure_vlans.php')
output = stdout.read().decode('utf-8')
print(output)
error = stderr.read().decode('utf-8')
if error:
print(f"Fehler: {error}")
What's Changed
Full Changelog: https://github.com/the-pod-shop/opnsense-helper/commits/production