I'm observing the same behavior. Furthermore, applying the IPv4 settings multiple times already produces duplicates (the specified search domains get appended each time the form is submitted).
The "guilty" code is in NetworkController.set_static_config where we extend the list of search domains (and also DNS addresses) without clearing the existing values first.
Clearing the values first might be an option but we need to be extra careful since since this code is shared between the subiquity client, the subiquity server and console_conf.
I'm observing the same behavior. Furthermore, applying the IPv4 settings multiple times already produces duplicates (the specified search domains get appended each time the form is submitted).
The "guilty" code is in NetworkControll er.set_ static_ config where we extend the list of search domains (and also DNS addresses) without clearing the existing values first.
https:/ /github. com/canonical/ subiquity/ blob/69264ad7f2 d3308a7e744331a f51d394590fb862 /subiquitycore/ controllers/ network. py#L357
ns = dev.config. setdefault( 'nameservers' , {}) setdefault( 'addresses' , []).extend( static_ config. nameservers) setdefault( 'search' , []).extend( static_ config. searchdomains) update_ link(dev)
ns.
ns.
self.
Also relates to https:/ /bugs.launchpad .net/ubuntu/ +source/ subiquity/ +bug/1993193
Clearing the values first might be an option but we need to be extra careful since since this code is shared between the subiquity client, the subiquity server and console_conf.