Add Remove Button to Dashboard for Network Configs #12716
alexanderjcurry
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please add a remove button to the dashboard network page.
I set DHCP via the dashboard thinking I could undue it, you can't unless you dig deep into the system and manually remove it... You are now left permanently with DHCP being set since the way I understand Talos is that it applies networking in layers, where console-defined networking is stored as platform state and evaluated above the machine configuration. As a result, once platform networking is enabled, it must be explicitly removed or the node reinstalled — editing the machine config alone cannot override it.
The fix is below but for the love of God add a remove button that just deletes the meta file so we do not have to dig deep into the system to get rid of a config we set by the dashboard.
$ talosctl get operatorspecs --namespace=network-config
NODE NAMESPACE TYPE ID VERSION
192.168.3.168 network-config OperatorSpec platform/dhcp4/ens18 1 <------ This was from me setting the DHCP IP in the dashboard (platform set)
$ talosctl get addressspecs
NODE NAMESPACE TYPE ID VERSION
192.168.3.168 network AddressSpec ens18/192.168.3.168/24 2
192.168.3.168 network AddressSpec ens18/192.168.3.50/24 2 <------ This is from my machine config I applied (machine config set)
192.168.3.168 network AddressSpec lo/127.0.0.1/8 2
192.168.3.168 network AddressSpec lo/169.254.116.108/32 2
$ talosctl -n 192.168.3.168 get meta 0x0a <----- This is the meta file that stores me setting DHCP in the dashboard
NODE NAMESPACE TYPE ID VERSION VALUE
192.168.3.168 runtime MetaKey 0x0a 1 addresses: []
links:
name: ens18
logical: false
up: true
mtu: 0
kind: ""
type: ether
layer: platform
routes: []
hostnames: []
resolvers: []
timeServers: []
operators:
operator: dhcp4
linkName: ens18
requireUp: true
dhcp4:
routeMetric: 1024
layer: platform
externalIPs: []
$ talosctl -n 192.168.3.168 meta delete 0x0a <---- Boom its gone, no more dhcp set via dashboard
Beta Was this translation helpful? Give feedback.
All reactions