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

core: services: cable_guy: Move interface priority from ipr to dhcpcd #1902

Merged

Conversation

patrickelectric
Copy link
Member

@patrickelectric patrickelectric commented Jul 26, 2023

Fix #1539

Right now to have it working it's required to do a system reboot.
Doing dhcpcd service restart breaks our wpa_supplicant connection. #1958 was an attempt to fix that.

@patrickelectric patrickelectric force-pushed the fix-interfaces-order branch 5 times, most recently from 71b423b to dfb14d8 Compare August 9, 2023 21:00
@patrickelectric patrickelectric marked this pull request as ready for review August 9, 2023 21:01
@patrickelectric patrickelectric force-pushed the fix-interfaces-order branch 2 times, most recently from 8992a35 to 869275f Compare August 10, 2023 12:48
@@ -3,7 +3,7 @@
<v-list>
<v-card-subtitle class="text-md-center" max-width="30">
Move network interfaces over
to change network access priority
to change network access priority.<br>Applied changes require a <b>system reboot</b>.
Copy link
Member

@Williangalvani Williangalvani Aug 11, 2023

Choose a reason for hiding this comment

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

can we make it show the reboo-required icon we use for parameter changes? even in bold this is quite subtle.
Or maybe a popup after saving saying "configurations will be applied on the next boot", if that is easier.

Copy link
Member Author

Choose a reason for hiding this comment

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

can we make it show the reboo-required icon we use for parameter changes? even in bold this is quite subtle. Or maybe a popup after saving saying "configurations will be applied on the next boot", if that is easier.

Yes, but that idea is under #1962, to be a global notifier.

Copy link
Member

@Williangalvani Williangalvani left a comment

Choose a reason for hiding this comment

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

It is working well, nice. Just had some minor questions

return metric
lines = self._get_service_dhcpcd_content()
result = []
current_interface = None
Copy link
Member

Choose a reason for hiding this comment

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

did you miss the type here? it looks like you missed the type, and that caused the errors in line 480 and 482 that you suppressed.

Copy link
Member Author

@patrickelectric patrickelectric Aug 11, 2023

Choose a reason for hiding this comment

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

I did try to apply the type, but is unrelated, the source of the issue is from mypy.
python/mypy#14987

@Williangalvani
Copy link
Member

btw, I tested with ip route get <external ip>
that shows what interface the packet would be routed through to get at the destination

@joaoantoniocardoso
Copy link
Member

joaoantoniocardoso commented Aug 11, 2023

Here it's not changing the metrics (seeing using ip -4 route and ip -6 route), and ip route get is always trying through the same interface (eth0)

@patrickelectric
Copy link
Member Author

patrickelectric commented Aug 11, 2023

Here it's not changing the metrics (seeing using ip -4 route and ip -6 route), and ip route get is always trying through the same interface (eth0)

did you reboot ?

@joaoantoniocardoso
Copy link
Member

Here it's not changing the metrics (seeing using ip -4 route and ip -6 route), and ip route get is always trying through the same interface (eth0)

did you reboot ?

I did not. Oops

@joaoantoniocardoso
Copy link
Member

joaoantoniocardoso commented Aug 11, 2023

priority_menu_forever_loading.mp4

edit: unable to replicate after the recording.

@patrickelectric patrickelectric enabled auto-merge (rebase) August 11, 2023 18:37
@patrickelectric patrickelectric merged commit 0809f5f into bluerobotics:master Aug 11, 2023
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.

Allow changing network priority
3 participants