OMAPI "key conflict"

Phil Mayers p.mayers at imperial.ac.uk
Mon Sep 10 20:33:03 UTC 2007


On Mon, 2007-09-10 at 16:49 -0300, Bruce Hudson wrote:
> 
> > On Sun, 2007-09-09 at 17:23 -0500, Allie Hopkins wrote:
> > > set ip-address = 192.168.0.10.192.168.1.20
> > > 
> > 
> > Nice suggestion, but it would seem not:
> 
>     Your error is that you did not set a hardware-address, not a problem
> with the ip-address syntax.

Oops. You're quite correct - my apologies to Allie.

So, at the moment all my hosts are declared with one "host" stanza for
the mac alone, and zero or more for each IP (there's no particular
reason for this - it's just the way the code has always generated them,
and it pre-dates me) like so:

host 11-22-33-44-55-66 {
  hardware ethernet 11:22:33:44:55:66;
}

host 192.168.0.10 {
  hardware ethernet 11:22:33:44:55:66;
  fixed-address 192.168.0.10;
}

host 192.168.1.10 {
  hardware ethernet 11:22:33:44:55:66;
  fixed-address 192.168.1.10;
}

If instead I move to:

host 11-22-33-44-55-66 {
  hardware ethernet 11:22:33:44:55:66;
  fixed-address 192.168.0.10, 192.168.1.10;
}

...then I can be sure that:

 1. the behaviour of the latter setup is exactly equivalent to the
former, without even considering OMAPI
 2. the latter should always be create-able, update-able and delete-able
under OMAPI

Is that true?



More information about the dhcp-users mailing list