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

Fixes docker run command to allow host receiving RA packets. #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

saramonteiro
Copy link

@saramonteiro saramonteiro commented Mar 17, 2023

This bring small changes for the docker run command to allow the computer (and other devices in the network) to have access to the RA packets.
This a result from this issue: openthread/ot-br-posix#1789

@google-cla
Copy link

google-cla bot commented Mar 17, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@saramonteiro
Copy link
Author

Note: Already signed the CLA.

```
> Notes: Consult the specific documentation from the used RCP and analyze if further
configuration is necessary, for example, setting up baudrate:
`--radio-url spinel+hdlc+uart:///dev/ttyUSB0?uart-baudrate=1000000`, also replace `enp3s0` by the name of your interface on the computer running otbr docker, ex: `wlan0`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? is special for shell

Suggested change
`--radio-url spinel+hdlc+uart:///dev/ttyUSB0?uart-baudrate=1000000`, also replace `enp3s0` by the name of your interface on the computer running otbr docker, ex: `wlan0`.
`--radio-url 'spinel+hdlc+uart:///dev/ttyUSB0?uart-baudrate=1000000'`, also replace `enp3s0` by the name of your interface on the computer running otbr docker, ex: `wlan0`.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should be the suggested change for other environments?

@saramonteiro saramonteiro force-pushed the docker_run_fix branch 2 times, most recently from 9d4eb9c to c90e703 Compare March 20, 2023 08:49
Copy link
Contributor

@librasungirl librasungirl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

```
> Notes: Consult the specific documentation from the used RCP and analyze if further
configuration is necessary, for example, setting up baudrate:
`--radio-url 'spinel+hdlc+uart:///dev/ttyUSB0?uart-baudrate=1000000'`, also replace `enp3s0` by the name of your interface on the computer running otbr docker, ex: `wlan0`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also replace enp3s0 by the name of your interface on the computer running otbr docker, ex: wlan0

I think it may be more clear to move this line before the command example. In most cases I think a user need to customize the backbone interface argument.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep it in order, so if they need to address the item in the note first, that should be first, then do

"In a new terminal window, start the OTBR Docker container, referencing the RCP's serial port:"

Then the docker run command

```


Upon success, you should have the initial output similar to this:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you switch this back to what it was, please.

Upon success, you should have output similar to this:

Comment on lines +35 to +36
Run the following commands before starting the container. That enables
the IPv6 in the host machine and the IP forwarding.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can say

Enable IPv6 and IP forwarding on the host machine, before starting the container:

```
> Notes: Consult the specific documentation from the used RCP and analyze if further
configuration is necessary, for example, setting up baudrate:
`--radio-url 'spinel+hdlc+uart:///dev/ttyUSB0?uart-baudrate=1000000'`, also replace `enp3s0` by the name of your interface on the computer running otbr docker, ex: `wlan0`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep it in order, so if they need to address the item in the note first, that should be first, then do

"In a new terminal window, start the OTBR Docker container, referencing the RCP's serial port:"

Then the docker run command

Upon success, you should have output similar to this:
In a new terminal window, start OTBR Docker container, referencing the RCP's serial port, as in the next command.

> Notes: Consult the specific documentation from the used RCP and analyze if further
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note:

not Notes

@jwhui
Copy link
Member

jwhui commented May 9, 2023

@saramonteiro , any plans to move this PR forward?

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.

6 participants