jan damborsky wrote:
> I agree it is straightforward for Sparc, since we don't
> need to update IP pool once it is created.
>
> I am not sure if there is an easy way to accomplish this
> for x86. As far as I am aware of we don't save information
> about IP pools created and how they are associated with given
> service.
>
> My current understanding is that if we want to get rid
> of macros associated with IP pool created for given service,
> we would need to destroy IP pool as well, since 'macro' field
> for particular IP can't be left empty. But I might be wrong
> in this point.
>
> We might think about some brute force approach for now
> like unconditionally update everything, but I am not
> sure if it is feasible solution.

This is probably going off on a tangent, but this issue has
been bugging me for a while so want to talk about it some
more here.

Since the creation of the IPs and a dhcp macro by
create-service is totally ancillary, provided purely
as a convenience, and not part of the configuration
of the install service proper, we obviously don't want to
automatically delete them when we delete a service.

So instead, should delete-service also take an option or
options to delete the service's associated macro and IP
address in the dhcp server?

   delete-service [ -m [-a] ]

   -m for service macro
   -a for associated address



-ethan


Reply via email to