Skip to content

Commit

Permalink
Cable-guy: save settings after changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Dec 5, 2024
1 parent 5083dd7 commit 17f717b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/services/cable_guy/networksetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def add_static_ip(self, interface_name: str, ip: str) -> None:
new_ip = AddressData(address=ip, prefix=24)
data.ipv4.address_data.append(new_ip)
settings.update_profile(data)
settings.save()
network_manager.activate_connection(connection_path)
return
except Exception as e:
Expand Down Expand Up @@ -124,6 +125,7 @@ def set_interfaces_priority(self, interfaces: List[NetworkInterfaceMetricApi]) -
metric += 1000
logger.info(f"Settting current priority for {interface.name} as {metric}")
settings.update(properties)
settings.save()
network_manager.activate_connection(connection_path)


Expand Down

0 comments on commit 17f717b

Please sign in to comment.