Project

General

Profile

Tâche #20450

Scénario #20446: Action DHCP : ajouter ou modifier une réservation d'IP

Définir le format d'échange

Added by Lionel Morin about 6 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Start date:
05/09/2017
Due date:
% Done:

100%

Estimated time:
3.00 h
Remaining (hours):
0.0

History

#1 Updated by Emmanuel GARETTE about 6 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Emmanuel GARETTE about 6 years ago

  • Assigned To set to Emmanuel GARETTE

#3 Updated by William Petit about 6 years ago

{
 "hosts": [
   { name: "", address: "", mac: "", id: "" },
   ...
 ],
 "deleteAll": true,
 "range": {
   "low": "",
   "high": "",
   "name": "",
 },
 "prefix": "" 
}

#4 Updated by Emmanuel GARETTE about 6 years ago

Réserver un hôte sur une plage dynamique :

reserved=[{'hostname': 'host45', 'rangename': 'test2', 'macaddress': '6E:FF:56:A2:AF:17'}]

Réserver un hôte avec une IP statique :

reserved=[{'hostname': 'host45', 'ip': '192.168.0.2', 'macaddress': '6E:FF:56:A2:AF:17'}]

Pour modifier une entrée, il faut rappeler son ID, par exemple :

reserved=[{'id': 1, 'hostname': 'host46', 'rangename':'test', 'macaddress': '6E:FF:56:A2:AF:17'}]

Pour réserver un poste en générant le nom à partir d'un préfix :

reserved=[{'ip': '192.168.0.2', 'macaddress': '6E:FF:56:A2:AF:17'}],
prefix='test'

Par défaut, en cas de problème, toutes les modifications sont annulées. Il est possible de forcer l'insertion des entrées sans problème en mettant :

save_when_error=True

Pour réserver un poste en sélectionnant automatiquement une IP dans un range donné :

reserved=[{'hostname': 'test0', 'macaddress': '6E:FF:56:A2:AF:17'}],
hosts_range={'low': '192.168.0.2', 'high': '192.168.0.30'}

Ou pour placer un poste dans une plage :

reserved=[{'hostname': 'test0', 'macaddress': '6E:FF:56:A2:AF:17'}],
hosts_range={'rangename': 'test2'}

#5 Updated by Emmanuel GARETTE about 6 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 3.0 to 0.0

#6 Updated by William Petit about 6 years ago

  • Status changed from En cours to Fermé

Also available in: Atom PDF