omapi and agent.remote-id
Jeff Waller
jeffw at cnxntech.com
Thu Feb 16 17:12:03 UTC 2012
You say subnets, but do you mean subclasses?
subclasses are better because it's far more efficient in terms of lookup
complexity. Subclass lookup is hashed O(1) while host lookup is linear O(n). Are
you saying new to 4.2 host lookup is also hashed?
On Feb 16, 2012, at 8:21 AM, Matej Mailing wrote:
> Hi,
>
> I have looked at some posts about the issue but was not successful on
> getting it to work via omapi. My idea is to set a host with its' fixed
> address entirely via omshell. Since 4.2 it is possible to use only
> host declatation for declarding a static IP address to a host (no more
> need to create subnets) and an option of using omapi for such a
> declaration would be very useful for users with large amounts of
> static IP allocations:
Can you define large?
>
> host hostname {
> host-identifier option agent.remote-id XX:XX:XX:XX:XX:XX;
> fixed-address aaa.aaa.aaa.aaa;
> }
>
> There is no complete information if it is supported or not on the
> current version or no and I am looking for more information about it.
Take a look at the source code for dhcp in server/omapi.c starting
around line 2640
in particular the functions
dhcp_host_set_value
dhcp_host_get_value
dhcp_host_destroy
dhcp_host_stuff_values
dhcp_host_lookup
dhcp_host_create
to get an idea of the values that are supported
in addition, there are other supported objects, although (see my post
in January) some of them are buggy, but you can apply my patches.
-Jeff
>
> TIA,
> Matej
> _______________________________________________
> dhcp-hackers mailing list
> dhcp-hackers at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-hackers
More information about the dhcp-hackers
mailing list