]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: use available network interfaces from runtime env info
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 20 Jun 2023 07:26:53 +0000 (09:26 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Jun 2023 09:09:39 +0000 (11:09 +0200)
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs

index 1b4bf790db10bbd2d1f05684b45845911bce572e..41e396082bf174d5da216ea9dd37e7dba3dffb44 100644 (file)
@@ -460,7 +460,9 @@ fn network_dialog(siv: &mut Cursive) -> InstallerView {
     let inner = FormView::new()
         .child(
             "Management interface",
-            SelectView::new().popup().with_all_str(vec!["eth0"]),
+            SelectView::new()
+                .popup()
+                .with_all_str(state.runtime_info.network.interfaces.keys()),
         )
         .child(
             "Hostname (FQDN)",