Currently, if IPv4 is configured with both dhcp and static addresses, the static addresses are first set on the :1, :2, ... interfaces and then DHCP is started on the :0 interface. Is there a specific reason for doing things in this order? What if the DHCP address appears in the :n interface where n is not be the largest logical number?
The reason I am asking this is that ipadm does not have the concept of logical interfaces (when libinetcfg goes away). So, I can create_addr which will add the address to the next available logical interface. The same happens with create_dhcp. If we want to stick with the 0th interface having the DHCP address, then we'll have to create_dhcp before the create_addr's. But this will change the ordering of addresses configured in the NCU state machine. I don't know yet if changing the ordering will have any unintended effect(s) on the state machine. Anurag
