[interfaces] On rajoute le mode "wifi"

Ignore-this: ed5cdf21645fc1041a188ecdef782ae0
(C'est pour dyson.wifi la fausse borne, mais ça pourrait servir à d'autres
serveurs dans le futur)

darcs-hash:20120809204343-28565-1244ceb247c99260f08032ad1338dea537989589.gz
This commit is contained in:
Daniel STAN 2012-08-09 22:43:43 +02:00
parent a9cf8c989b
commit 8f93352960
2 changed files with 20 additions and 0 deletions

View file

@ -14,12 +14,18 @@ def pubipof(hostname):
def admipof(hostname):
return socket.gethostbyname(hostname + ".adm.crans.org")
def wifiipof(hostname):
return socket.gethostbyname(hostname + ".wifi.crans.org")
def pubip():
return pubipof(hostname)
def admip():
return admipof(hostname)
def wifiip():
return wifiipof(hostname)
def radinip():
if has("vlan-radin"):
return '10.42.0.1'