On (04/22/09 15:43), Erik Nordmark wrote: >> My question was: if we have a way of creating configuration for missing >> objects, and the admin creates this virtual configuration, then what >> is the administrative step to actually enable that configuration. >> I was thinking of "ipadm create-link" as a way of applying the virtual >> config. (But I think what you are suggesting is to have the actual >> datalink create/rename commands itself apply this?) > > Did you mean 'ipadm create-if'? (Using "link0" as the example IP
yes, I meant create-if. >>> When it reappears, whether or not Vanity naming is involved, it is no >>> longer a pt-pt type link. >>> >>> What we'd want for those cases is that the whole create-address that >>> is triggered by the link reappearing fail. We don't want e.g., that >>> the address is created and the local address is set, but the >>> destination is not set. >>> >>> And we'd need some place to report these errors. >> >> right, there would have to be a lot of error-checking. > > Not any more than today; we need to check that SIOCSLIFDSTADDR is > consistent with the IFF_POINT2POINT when we do a manual ifconfig/ipadm, > and the same check would catch the mismatch when a datalink reappears. > The difference is how/where errors are reported. What I meant by more error checking is that we now have some dependancies to consider. In the example above, if I cannot create the address, then I clearly dont want to set some address properties, but the decision may not be so clear for other interface properties like, e.g., interface metric. --Sowmini _______________________________________________ networking-discuss mailing list [email protected]
