[ https://issues.apache.org/jira/browse/HADOOP-7806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eli Collins updated HADOOP-7806: -------------------------------- Attachment: hadoop-7806.txt Here's an updated patch that's a delta from HADOOP-8154. It's hard to test a sub-interface explicitly in TestDNS without mocking NetworkInterface itself (which means we're not testing it). I think that's OK because we've tested with a tarball on a host with sub-interfaces and the new getSubinterface method is exercised by testIPsOfUnknownInterface which will pass go down this path (and will check all interfaces and sub-interfaces since it won't be ale to determine the interface for "name-of-an-unknown-interface"). > [DNS] Support binding to sub-interfaces > --------------------------------------- > > Key: HADOOP-7806 > URL: https://issues.apache.org/jira/browse/HADOOP-7806 > Project: Hadoop Common > Issue Type: New Feature > Components: util > Affects Versions: 0.24.0 > Reporter: Harsh J > Assignee: Harsh J > Fix For: 0.24.0 > > Attachments: HADOOP-7806.patch, HADOOP-7806.patch, hadoop-7806.txt > > > Right now, with the {{DNS}} class, we can look up IPs of provided interface > names ({{eth0}}, {{vm1}}, etc.). However, it would be useful if the I/F -> IP > lookup also took a look at subinterfaces ({{eth0:1}}, etc.) and allowed > binding to only a specified subinterface / virtual interface. > This should be fairly easy to add, by matching against all available > interfaces' subinterfaces via Java. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira