21 lines
589 B
Python
21 lines
589 B
Python
#!/bin/bash /usr/scripts/python.sh
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Service in charge of firewall for trigger.
|
|
#
|
|
# Author : Pierre-Elliott Bécue <becue@crans.org>
|
|
# Licence : GPLv3
|
|
|
|
import lc_ldap.shortcuts
|
|
from gestion.trigger.host import record
|
|
import cranslib.clogger as clogger
|
|
import gestion.config.dhcp as dhcp_config
|
|
import gestion.secrets_new as secrets_new
|
|
import socket
|
|
import gestion.affichage as affichage
|
|
import os
|
|
import sys
|
|
import gestion.iptools as iptools
|
|
|
|
logger = clogger.CLogger("trigger.firewall", "debug")
|
|
hostname = socket.gethostname().split(".")[0] + ".adm.crans.org"
|