On 23/03/09 01:07 PM, Sebastien Roy wrote:
> On Mon, 2009-03-23 at 15:43 -0400, Sebastien Roy wrote:
>
>> On Mon, 2009-03-23 at 15:25 -0400, Girish Moodalbail wrote:
>>
>>> Right; in the show-prop output for the 'Proto' field we need to
>>> specify ip4 for v4 specific property and ip6 for v6 specific property
>>> and just 'ip' for both v4 and v6.
>>>
>> This still doesn't address my concern. For a property that applies to
>> both, how can I tell if a value applies to IPv4 or IPv6? In your
>> statement above, you say that properties that apply to both would be
>> labeled "ip", which means that I'd see (for example):
>>
>> # ipadm show-prop
>> INTF PROTO PROPERTY PERMS VALUE DEFAULT POSSIBLE
>> bge0 ip forwarding rw yes yes yes/no
>>
>> Does the current value of "yes" apply to IPv4 or IPv6? Or are you
>> saying something different, for example that one property could have
>> multiple rows of output, where "proto" doesn't actually refer to the
>> "proto" specified with "-m"?
>>
>> May I suggest that the values of the "proto" field in the output map 1-1
>> with a value that can be passed in to the "proto" argument to the
>> "set-prop" "-m" option? This would then require that IPv4 and IPv6 be
>> separate protocols, which to me seems perfectly natural.
>>
>
> Note that an alternative is to also display a FAMILY field. This would
> address my concern as well (as Girish and I discussed off-line).
>
Which is good... and if I refer back to the CLI you presented earlier:
# ipadm {create,modify}-interface [-t] [-f {inet, inet6}] \
[-if6_intf_id=<IPv6 Interface ID>] \
[-O <interface sub-options>] <interface>
Then the concept you're pushing of an interface being a "thing"
that can have multiple address families requires that the "-f"
option be dropped completely. Another alternative might be to
make the family a mandatory option before "-t", without the "-f".
But how far do you see this going?
Are we changing Solaris networking so that ipadm will be creating
interface stubs on which we can also attach NETBUI and Appletalk
addresses? That's what you can do with BSD and Linux... but you
use ifconfig to do that there, not some IP specific command.
Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/brussels-dev/attachments/20090325/661fe28b/attachment.html>