OMAPI "key conflict"

Simon Hobson dhcp1 at thehobsons.co.uk
Mon Sep 10 06:26:25 UTC 2007


Phil Mayers wrote:
>I am trying to create the following two hosts via OMAPI:
>
>host 192.168.0.10 {
>  hardware ethernet 00:11:22:33:44:55;
>  fixed-address 192.168.0.10;
>};
>host 192.168.1.10 {
>  hardware ethernet 00:11:22:33:44:55;
>  fixed-address 192.168.1.10;
>};
>
>I am unable to create the 2nd; I get an OMAPI "key conflict". I 
>presume this is because the MAC address is already in there;

Wrong, it's because the hostname is already there. The name part (ie 
the word between "host" and "{") is a unique key in the database and 
cannot be duplicated.



More information about the dhcp-users mailing list