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

[PD] make PD upstream interface consistent with infra_if name #2644

Closed
wants to merge 8 commits into from
3 changes: 1 addition & 2 deletions script/_dhcpv6_pd_ref
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
# This script manipulates DHCPv6-PD-REF configuration.
#

# TODO: set the upstream interface according to the environment variables of `script/setup`.
UPSTREAM_INTERFACE="eth0"
UPSTREAM_INTERFACE=${INFRA_IF_NAME}
Copy link
Contributor

Choose a reason for hiding this comment

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

As I checked, INFRA_IF_NAME is defined as a environment variable only in dockerfile for harness simulation. That means in other cases this variable will be undefined. Is it correct? Or we need to include other bash script from here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are correct, Li. Thanks for figuring it out.


DHCPCD_ENTER_HOOK="/etc/dhcpcd.enter-hook"
DHCPCD_EXIT_HOOK="/etc/dhcpcd.exit-hook"
Expand Down
3 changes: 1 addition & 2 deletions script/reference-device/dhcpcd.enter-hook
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#

# TODO: set the upstream interface according to the environment variables of `script/setup`.
UPSTREAM_INTERFACE="eth0"
UPSTREAM_INTERFACE=${INFRA_IF_NAME}
WPAN_INTERFACE="wpan0"

RADVD_CONF="/etc/radvd.conf"
Expand Down
3 changes: 1 addition & 2 deletions script/reference-device/dhcpcd.exit-hook
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#

# TODO: set the upstream interface according to the environment variables of `script/setup`.
UPSTREAM_INTERFACE="eth0"
UPSTREAM_INTERFACE=${INFRA_IF_NAME}
WPAN_INTERFACE="wpan0"

RADVD_CONF="/etc/radvd.conf"
Expand Down
Loading