Esthtisme.
darcs-hash:20060319181713-68412-20a0d10ba8997d1cf10fc241e4b8cad72a289a42.gz
This commit is contained in:
parent
9ecffdc4fe
commit
f9af7f43ae
1 changed files with 71 additions and 66 deletions
|
@ -2341,7 +2341,8 @@ class Machine(base_classes_crans):
|
|||
if not self._data.has_key('hostAlias'):
|
||||
self._data['hostAlias'] = []
|
||||
liste = list(self._data['hostAlias'])
|
||||
if new==None: return map(decode,liste)
|
||||
if new == None:
|
||||
return map(decode, liste)
|
||||
|
||||
if type(new) == list:
|
||||
# Modif
|
||||
|
@ -2560,7 +2561,8 @@ class Machine(base_classes_crans):
|
|||
self.services_to_restart('conf_wifi_ng')
|
||||
|
||||
# Reconfiguration clients wifi ?
|
||||
if self.__typ in ('wifi','borne') and ( 'ipHostNumber' in self.modifs or 'host' in self.modifs or 'macAddress' in self.modifs ):
|
||||
if self.__typ in ('wifi', 'borne') \
|
||||
and ('ipHostNumber' in self.modifs or 'host' in self.modifs or 'macAddress' in self.modifs):
|
||||
self.services_to_restart('conf_wifi_ng')
|
||||
|
||||
# Regénération blackliste nécessaire ?
|
||||
|
@ -2617,12 +2619,15 @@ class Machine(base_classes_crans):
|
|||
def portTCPin(self, ports=None):
|
||||
""" Ports TCP ouverts depuis l'extérieur pour la machine """
|
||||
return self.__port(ports, 'portTCPin')
|
||||
|
||||
def portTCPout(self, ports=None):
|
||||
""" Ports TCP ouverts vers l'extérieur pour la machine """
|
||||
return self.__port(ports, 'portTCPout')
|
||||
|
||||
def portUDPin(self, ports=None):
|
||||
""" Ports UDP ouverts vers l'extérieur pour la machine """
|
||||
return self.__port(ports, 'portUDPin')
|
||||
|
||||
def portUDPout(self, ports=None):
|
||||
""" Ports UDP ouverts vers l'extérieur pour la machine """
|
||||
return self.__port(ports, 'portUDPout')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue