Peter Memishian wrote: > > > The problem is that IP simply assumes that both ill "halves" must refer to > > > the same phyint. Above, the IPv4 half is a DL_ETHER link, and the IPv6 > > > half is a SUNW_DL_IPMP pseudo-link, which quickly induce a panic. While > > > I've fixed IP to catch this case in my workspace, I think the same problem > > > may show up in the vanity naming bits. For instance, what happens in the > > > following case? > > > > > > # ifconfig vni0 inet6 plumb > > > # dladm rename-link ce0 vni0 > > > # ifconfig vni0 plumb > > > > > > > [With your fix in IP, the second ifconfig should just fail, is that right?] > >Right. My fix is not really complete, but covers the above case by >requiring that all ills with the same name must have the same media type. > >
This is not intuitive and seems to be at odds with vanity naming. Even if it were role based naming, making an assertion that all links for role X must be the same type *seems* flawed.... > > Therefore, one would argue that the rename operation should just fail, as > > there is already interface named vni0. I think we discussed about this and > > concluded that it is just wrong to validate the link names, and exclude > > those well established IP interface name prefixes, even that some careless > > configuration will result in confusion. > > I think preventing this scenario at "ifconfig plumb" time is sufficient. I would tend to side with the rename operation failing, here. But, I would add, not because "vni" is a reserved name. In the past, interface naming has been like this: IPv4 and IPv6 address names always match the device name and instance with which they are associated and always match themselves. bge0 for ipv4 will be bge0 for ipv6 and is bge0 underneath. What are the new rules for associating Ipv4 and Ipv6 interfaces names with the devices and their instances? Does vanity naming allow for an interface to be given the same name in v4 and v6 but be associated with different devices/instances? Is there any reason that it should allow net0 for Ipv4 to be a different interface to net0 for Ipv6? Darren
