On (07/13/09 16:39), Peter Memishian wrote: > > I never suggested we should try to design to handle this case; I am merely > refuting the claim that folks should "fix the resolver". However, it > would seem reasonable to me to have ipadm bail out with an error if it > finds a given hostname maps to more than one IP address.
right.. another thing to remember here is that the debate about generating a default user-friendly label for an address is more of an issue for the CLI than for the library. Backing up a bit, it's only at the CLI that we have issues like "what is a user-friendly way to specify an iptunnel to 'ipadm delete-address' from the command line?" In the libipadm invocation, one could just call ipadm_create_addr() (or some lookup function to find an address) and get back an opaque structure that would then be used to do other operartions on the address. So does the following ipadm create-addr -i <intf> [-a laddr[,raddr]] <label> offer potential for confusion? (an address pair will be needed for tunnels. <label> will be used to generate the local address, when no -a arg is supplied) --Sowmini
