[
https://issues.apache.org/jira/browse/HADOOP-7806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152704#comment-13152704
]
Harsh J commented on HADOOP-7806:
---------------------------------
There were no existing tests for this. Unsure how I can add some tests for
subinterfaces, even with mockito. Any ideas?
But I've tested the patch manually on a machine where I had "eth0:1" available,
and the specific IP got returned for binding.
> [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
>
>
> 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