Opened 6 years ago

Last modified 4 years ago

#9590 in-progress bug

[Network] preflet doesn't update the list of interfaces on the fly

Reported by: diver Owned by: jackburton
Priority: normal Milestone: R1
Component: Preferences/Network Version: R1/Development
Keywords: Cc: jackburton
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

This is hrev45428.

The Network preflet doesn't reflect changes to the list of interfaces.

To reproduce:

  • Open the preflet
  • ifconfig del /dev/net/ipro1000/0 ifconfig /dev/net/foo/0 up

Same applies to NetworkStatus.

Change History (9)

comment:1 Changed 6 years ago by diver

Some additional info is here: ticket:7040#comment:3

comment:2 Changed 6 years ago by diver

Cc: jackburton added

ticket:7040#comment:3 was implemented in hrev45534.

comment:3 Changed 5 years ago by jackburton

Owner: changed from axeld to jackburton
Status: newin-progress

comment:4 Changed 5 years ago by pulkomandy

Hi, There is a rewrite of the network preflet in src/tests/kits/net/preflet. It altready supports updating the list of interfaces. Maybe it would be better to spend time on finishing and improving it rather than continuing work on the currently used preferences panel?

comment:5 in reply to:  4 Changed 5 years ago by jackburton

Replying to pulkomandy:

Hi, There is a rewrite of the network preflet in src/tests/kits/net/preflet. It altready supports updating the list of interfaces. Maybe it would be better to spend time on finishing and improving it rather than continuing work on the currently used preferences panel?

How functional is that ? If it's ready for basic functionality, we should replace the current preflet with it.

comment:6 Changed 5 years ago by pulkomandy

There are a few things missing:

  • No way to configure DNS servers
  • I'm not sure the settings are correctly saved to the right place - can't remember if that was implemented

The plan is to replace the current preflet once we have basic functions working in this new one. Then we can think about improvements starting with a better base.

To build and test the new preflet:

jam -q NetworkSetup Interfaces

You need to put Interfaces in the add-ons search path for NetworkSetup, for example in an "add-ons" folder next to the NetworkSetup executable. The other add-ons are not available yet, they are empty stubs and not up to date with the current state of the app.

comment:7 Changed 4 years ago by pulkomandy

New network preflet is the default now, and this seems to work. However

  • Still need to update NetworkStatus
  • I tried deleting my network interface and got a KDL. We should also solve that.

comment:8 in reply to:  7 ; Changed 4 years ago by jackburton

Replying to pulkomandy:

New network preflet is the default now, and this seems to work. However

  • Still need to update NetworkStatus

Maybe we could integrate NetworkStatus in the Preflet, so that it's just a "view" of the Preflet itself ? At least, I can't see why they should be two different apps, since currently they also share some code (Some files get compiled for both).

  • I tried deleting my network interface and got a KDL. We should also solve that.

It's tracked in #5492.

comment:9 in reply to:  8 Changed 4 years ago by jackburton

Replying to jackburton:

  • I tried deleting my network interface and got a KDL. We should also solve that.

It's tracked in #5492.

Sorry, that would be #10919

Note: See TracTickets for help on using tickets.