mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
Support dns-options in network role
Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
parent
675c7e8073
commit
880b7ab0cc
8 changed files with 357 additions and 4 deletions
|
|
@ -993,7 +993,9 @@ class NMUtil:
|
|||
s_ip4.add_dns(d["address"])
|
||||
for s in ip["dns_search"]:
|
||||
s_ip4.add_dns_search(s)
|
||||
|
||||
s_ip4.clear_dns_options(True)
|
||||
for s in ip["dns_options"]:
|
||||
s_ip4.add_dns_option(s)
|
||||
if ip["auto6"]:
|
||||
s_ip6.set_property(NM.SETTING_IP_CONFIG_METHOD, "auto")
|
||||
elif addrs6:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue