OMAPI "key conflict"
Phil Mayers
p.mayers at imperial.ac.uk
Mon Sep 10 19:07:26 UTC 2007
On Mon, 2007-09-10 at 07:26 +0100, Simon Hobson wrote:
> 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.
Read what I typed again, carefully.
More information about the dhcp-users
mailing list