public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christoph Heiss <c.heiss@proxmox.com>
To: Lukas Sichert <l.sichert@proxmox.com>
Cc: pve-devel@lists.proxmox.com
Subject: Re: [PATCH installer 10/15] gui: network: add bond setup options to advanced options dialog
Date: Wed, 21 Oct 2026 17:46:51 +0200	[thread overview]
Message-ID: <e2c6247c-175a-492a-95bd-0e7e462bf0d1@proxmox.com> (raw)
In-Reply-To: <DMAMLPWHHONP.14Q2RZJEMUFKX@proxmox.com>

Thanks for the thorough review!

On 10/21/26 17:36, Lukas Sichert wrote:
> [..]
>> +    my $set_sensitive = sub {
>> +        my ($active) = @_;
>> +
>> +        $opts_grid->foreach(sub {
>> +            $_[0]->set_sensitive($active);
>> +        });
>> +
>> +        if ($active) {
>> +            # if activating all inputs, observe the rules applied by the mode change handler
>> +            $on_mode_changed->(Proxmox::Install::Config::get_mngmt_bond_opt('mode'));
>> +        }
> 
> 
> Currently the font of the label of the bond primary textfield and the
> hash policy field are not greyed out if they are deactivated. This is
> especially confusing for the bond primary, because greyed out textfield
> and sensitive textfield look really similar. I think this could either
> be done in the on_mode_changed function or even in the foreach loop
> above.

I'll implement that for v3, definitely makes things a bit more clear.

> 
> Also I am a bit confused as to why the on_mode changed function is
> called with a parameter, as it does not process one (see above).

Good catch, that's just some leftover from a previous iteration.

>> [..]
>> +            my $name =
>> +                $pinning_active
>> +                ? $name_mapping->{ $iface->{mac} }
>> +                : $iface->{name};
> 
> Here probably $mapping was intended to be used instead of $name_mapping,
> but I am not sure if this will actually refresh interface names,
> as the map is only set on OK.

Yep, should have been `$mapping` indeed.

> 
>> +            my $label = "$name ($iface->{mac}, $iface->{driver}, $iface->{state})";
>> +            $checkboxes->{ $iface->{mac} }->set_label($label);
>> +        }
>> +    };
>> +    $refresh_if_names->($gtk_state->{network_pinning_enabled});
>> +
> 
>> +    my ($device_active_map, $device_active_reverse_map) = ({}, {});
> 
>> -    my ($device_active_map, $device_active_reverse_map) = ({}, {});
> 
> I am not too sure about this refactor here. I think it should be done in
> a separate commit as it touches the non bonding setup as well. Also you
> use
> $device_active_map->{$i} = $label;
> compared to
> $device_active_map->{$i} = $name;
> before without changing the $device_change_handler.

I already removed that bit locally in my working copy for v3.
Initially this was due to some issue with the bond implementation, which 
was actually fixed with the

```
[..]
     if defined($device_active_reverse_map->{$nic})
```

snippet below - just didn't re-check it with that bit removed again.





  reply	other threads:[~2026-10-21 15:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-20 11:23 [PATCH installer/proxmox 00/15] partially fix #2164: add bond setup across all installers Christoph Heiss
2026-10-20 11:23 ` [PATCH proxmox 01/15] installer-types: use `MacAddress` type where applicable Christoph Heiss
2026-10-20 11:23 ` [PATCH proxmox 02/15] installer-types: answer: add options for configuring management bond Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 03/15] install: run make tidy Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 04/15] tree-wide: use `MacAddress` type instead of string for MAC addresses Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 05/15] install: factor out /etc/network/interfaces setup into own subroutine Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 06/15] install: do not rely on interface name map to be fully populated Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 07/15] install: config: add option for setting up bond on management interface Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 08/15] install: network: set up management bond if requested Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 09/15] gui: network: factor out name pinning into advanced options dialog Christoph Heiss
2026-10-21 14:12   ` Lukas Sichert
2026-10-20 11:23 ` [PATCH installer 10/15] gui: network: add bond setup options to " Christoph Heiss
2026-10-21 15:36   ` Lukas Sichert
2026-10-21 15:46     ` Christoph Heiss [this message]
2026-10-20 11:23 ` [PATCH installer 11/15] auto: pass trough management network bond options to low-level installer Christoph Heiss
2026-10-21 15:52   ` Lukas Sichert
2026-10-20 11:23 ` [PATCH installer 12/15] tui: drop long obsolete comment about logo formatting Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 13/15] tui: views: add widget for displaying a group of checkboxes Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 14/15] tui: network: factor out name pinning into advanced options dialog Christoph Heiss
2026-10-20 11:23 ` [PATCH installer 15/15] tui: network: add bond setup options to advanced network dialog Christoph Heiss
2026-10-20 11:25 ` [PATCH installer/proxmox 00/15] partially fix #2164: add bond setup across all installers Christoph Heiss
  -- strict thread matches above, loose matches on Subject: below --
2026-09-08 10:16 Christoph Heiss
2026-09-08 10:16 ` [PATCH installer 10/15] gui: network: add bond setup options to advanced options dialog Christoph Heiss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e2c6247c-175a-492a-95bd-0e7e462bf0d1@proxmox.com \
    --to=c.heiss@proxmox.com \
    --cc=l.sichert@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal