[dhcpd_new] Retrait d'une dépendance inutile à ldap_crans
This commit is contained in:
parent
a51d14f518
commit
361fa95b9d
1 changed files with 3 additions and 1 deletions
|
@ -9,13 +9,15 @@ Licence : GPLv2
|
||||||
import os
|
import os
|
||||||
from iptools import AddrInNet
|
from iptools import AddrInNet
|
||||||
from gen_confs import gen_config
|
from gen_confs import gen_config
|
||||||
from ldap_crans import hostname
|
from socket import gethostname
|
||||||
from config import NETs
|
from config import NETs
|
||||||
|
|
||||||
from pypureomapi import pack_ip, pack_mac, OMAPI_OP_UPDATE
|
from pypureomapi import pack_ip, pack_mac, OMAPI_OP_UPDATE
|
||||||
from pypureomapi import Omapi, OmapiMessage, OmapiError, OmapiErrorNotFound
|
from pypureomapi import Omapi, OmapiMessage, OmapiError, OmapiErrorNotFound
|
||||||
import struct
|
import struct
|
||||||
|
|
||||||
|
hostname = gethostname().split(".")[0]
|
||||||
|
|
||||||
class dydhcp:
|
class dydhcp:
|
||||||
def __init__(self, server):
|
def __init__(self, server):
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue