Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jsk_tools/env-hooks/99.jsk_tools.sh] use ip for rossetip instead of ifconfig #1436

Merged
merged 2 commits into from
Aug 30, 2016

Conversation

furushchev
Copy link
Member

for future compatibility and multi platform.

@furushchev furushchev force-pushed the ip branch 2 times, most recently from d9270dd to a25e9ba Compare August 8, 2016 02:50
@furushchev furushchev changed the title [jsk_tools/env-hooks/99.jsk_tools.sh] use ip for rossetip instead of ifconfig [WIP][jsk_tools/env-hooks/99.jsk_tools.sh] use ip for rossetip instead of ifconfig Aug 8, 2016
@furushchev furushchev changed the title [WIP][jsk_tools/env-hooks/99.jsk_tools.sh] use ip for rossetip instead of ifconfig [jsk_tools/env-hooks/99.jsk_tools.sh] use ip for rossetip instead of ifconfig Aug 8, 2016
@furushchev
Copy link
Member Author

@k-okada Test passed. Please merge.

@k-okada
Copy link
Member

k-okada commented Aug 9, 2016

  1. ip is provided from iproute2 package, did you add rosdep for this?
$ dpkg -S /bin/ip
iproute2: /bin/ip
  1. do we have test code ros rossetip?

  2. is this just a refactor ? or you have ane specific reason to change code?

@furushchev
Copy link
Member Author

@k-okada Thank you for reviewing.

  1. ip is provided from iproute2 package, did you add rosdep for this?

No, just forgot. I'll add it.

  1. do we have test code ros rossetip?

No, I think. I should add test code. (but a bit difficult)

  1. is this just a refactor ? or you have ane specific reason to change code?

current implementation uses ifconfig. this is deprecated and will be removed in the future. (already unavailable on OSX), and replaced to ip.

Also ip provides function to get route from specific device to host and it's much smarter to use this instead of masking manually. (https://github.com/jsk-ros-pkg/jsk_common/pull/1436/files#diff-48005ba849f01087afb5a38e0561c822L97)

Also I fixed weird behavior in rossetip_addr, which captures ip address of docker0 when docker is installed.

@furushchev
Copy link
Member Author

@k-okada How about this pull request?

@k-okada
Copy link
Member

k-okada commented Aug 29, 2016

Did you add iproute2 to package.xml ?

@furushchev
Copy link
Member Author

@k-okada Oh,,, very sorry... added.

@k-okada k-okada merged commit 38bd8ae into jsk-ros-pkg:master Aug 30, 2016
@furushchev furushchev deleted the ip branch August 30, 2016 04:23
@k-okada
Copy link
Member

k-okada commented Oct 28, 2016

memo:

  • users do not install from scratch, they just update the code
  • when users have trouble, they roll back code to previous version

#1472 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants