diff --git a/gestion/gen_confs/dhcpd_new.py b/gestion/gen_confs/dhcpd_new.py index bc2327af..9c24f367 100644 --- a/gestion/gen_confs/dhcpd_new.py +++ b/gestion/gen_confs/dhcpd_new.py @@ -9,13 +9,15 @@ Licence : GPLv2 import os from iptools import AddrInNet from gen_confs import gen_config -from ldap_crans import hostname +from socket import gethostname from config import NETs from pypureomapi import pack_ip, pack_mac, OMAPI_OP_UPDATE from pypureomapi import Omapi, OmapiMessage, OmapiError, OmapiErrorNotFound import struct +hostname = gethostname().split(".")[0] + class dydhcp: def __init__(self, server): import sys