-
Notifications
You must be signed in to change notification settings - Fork 179
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
feat(discovery-client): Add CLI commands to find and SSH into a robot #2072
Conversation
discovery-client/README.md
Outdated
@@ -24,7 +24,7 @@ const options = { | |||
nameFilter: /^opentrons/i, | |||
allowedPorts: [31950], | |||
pollInterval: 5000, | |||
candidates: [{ip: '[fd00:0:cafe:fefe::1]', port: 31950}, 'localhost'] | |||
candidates: [{ ip: '[fd00:0:cafe:fefe::1]', port: 31950 }, 'localhost'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for all these whitespace changes; I enabled prettier in my editor and this is the prettier default. Let me know if this bothers you and I can revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind it, its more readable
Codecov Report
@@ Coverage Diff @@
## edge #2072 +/- ##
=========================================
- Coverage 33.03% 33% -0.04%
=========================================
Files 452 452
Lines 7195 7236 +41
=========================================
+ Hits 2377 2388 +11
- Misses 4818 4848 +30
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested on wandering-👩 and VS. discussed logging in person.
Got verbal 👍 from Andy |
|
||
# example: find the IP address of a wired robot that may be IPv4 or IPv6 | ||
# (IPv6 means legacy non-mDNS wired configuration) | ||
discovery find -i "169.254" "fd00" -c "[fd00:0:cafe:fefe::1]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Universal SSH into wired bot command 🎉
overview
In support of the switch to IPv4, this PR adds a couple commands to the
discovery-client
CLI:discovery find [name] [options]
- Find the IP address of a single robot, optionally by namediscovery-ssh [name] [options]
- Bash script to calldiscovery find
and then SSH into the found robotchangelog
discovery find [name] [options]
discovery-ssh [name] [options]
review requests
questions
npm
might actually be a good ideatesting
This must be run in an environment with
bash
andssh
available/Run
make install
after checkout to get newyarn
dependencies and rebuilddiscovery-client
.npx discovery-ssh --ipFilter=169.254
npx discovery-ssh --candidates="[fd00:0:cafe:fefe::1]" --ipFilter="[fd00"
discovery-client/README.md
and make sure they work, toonpx discovery-ssh opentrons-moon-moon